[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#502823: iodine: piuparts test fails: /var/lib/dpkg/info/iodine.postinst: line 27: ./MAKEDEV: No such file or directory



* gregor herrmann [Mon, 20 Oct 2008 19:20:54 +0200]:

> Index: debian/postinst
> ===================================================================
> --- debian/postinst	(revision 1469)
> +++ debian/postinst	(working copy)
> @@ -23,8 +23,11 @@
>  case "$1" in
>      configure)
>          # we need a tun device
> -        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
>          # and we want a special user
>          adduser --quiet --system --home /var/run/iodine iodine
>          # generate /etc/default/iodine

This patch looks fine. As far as I know, you could (should?) Depend:
udev | makedev as well.

* Lucas Nussbaum [Mon, 20 Oct 2008 19:43:53 +0200]:

> Couldn't you depend on makedev?

See above.

* Alexander Wirt [Mon, 20 Oct 2008 19:28:31 +0200]:

> if [ -d "/dev/.static" ]; then
> 	cd /dev/.static
> 	./MAKEDEV ....
> else 
> 	cd /dev/
> 	./MAKEDEV 
> fi

No, that is wrong. Check with Md if you want to know the reasons.

Cheers,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
                                 Listening to: Compay Segundo - La Pluma


Reply to: