On Wed, 22 Oct 2008 11:58:37 +0200, Adeodato Simó wrote: > > - echo "Creating device /dev/net/tun ..." > > - cd /dev && ./MAKEDEV tun > > + if [ ! -c /dev/net/tun ] && [ -x /dev/MAKEDEV ] ; then > > + echo "Creating device /dev/net/tun ..." > > + cd /dev > > + ./MAKEDEV tun || true > > + fi > This patch looks fine.
Thanks for checking! > As far as I know, you could (should?) Depend: > udev | makedev as well. Right, "udev | makedev" is already in Depends:; the problem shown in this bug is that (1) udev gets installed, (2) doesn't create the device in the chroot, and (3) MAKEDEV is not available ... And (4) MAKEDEV would fail nevertheless because udev is active. I think we need to check: * does the device exist? * is udev inactive and MAKEDEV available? Next attempt for the patch: Index: debian/postinst =================================================================== --- debian/postinst (revision 1469) +++ debian/postinst (working copy) @@ -23,8 +23,13 @@ case "$1" in configure) # we need a tun device - echo "Creating device /dev/net/tun ..." - cd /dev && ./MAKEDEV tun + if [ ! -c /dev/net/tun ] ; then + if [ ! -e /dev/.udev ] && [ ! -e /dev/.udevdb ] && [ -x /dev/MAKEDEV ] ; then + echo "Creating device /dev/net/tun ..." + cd /dev + ./MAKEDEV tun || true + fi + fi # and we want a special user adduser --quiet --system --home /var/run/iodine iodine # generate /etc/default/iodine > On Wed, 22 Oct 2008 08:25:32 +0100, Matthew Johnson wrote: > > > > hi, is there any reason not to just make running makedev conditional on > > > > udev not being active? This is the normal solution. > > > Just that I'm not sure how to detect if udev is active or not :) > > How about the attached patch? > | + if [ ! -e /dev/.udev ]; then > Ah, nice; thanks! > (Will try later when I have access to my desktop machine.) Works, thanks for the hint! Cheers, gregor -- .''`. Home: http://info.comodo.priv.at/{,blog/} / GPG Key ID: 0x00F3CFE4 : :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/ `. `' Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/ `- NP: Donovan: You re gonna need somebody on your bond
signature.asc
Description: Digital signature