On Sun, 22 Jul 2007 02:36:35 +0200, Marco d'Itri wrote: > cd /dev && WRITE_ON_UDEV=false ./MAKEDEV tun
Thanks for your report and your explanations. I'm more than willing to use MAKEDEV correctly, but I still have a question. > - if udev is installed, /dev/net/tun is always automatically created at > boot time At the time I wrote this line it wasn't on my machine but anyway. > - anyway, even if it were missing this would only make it exist until > the next reboot It seems rather permanent on my machines but anyway. > - but now the device will not actually be created in the underlying > static /dev if it is really missing from there > > So please remove the if [ -e /dev/net/tun ] and WRITE_ON_UDEV=false, > and then s/makedev/udev | makedev/ in the Depends field. Alright, I did some tests now (with udev 0.105-4): [EMAIL PROTECTED]:~# cd /dev/ [EMAIL PROTECTED]:/dev# find -name tun ./net/tun [EMAIL PROTECTED]:/dev# rm net/tun [EMAIL PROTECTED]:/dev# ./MAKEDEV tun udev active, devices will be created in /dev/.static/dev/ [EMAIL PROTECTED]:/dev# find -name tun ./.static/dev/net/tun [EMAIL PROTECTED]:/dev# At that point I have /dev/.static/dev/tun but no /dev/net/tun. iodine uses /dev/net/tun so it would not work at that stage. * reboot * [EMAIL PROTECTED]:/dev# find -name tun ./net/tun ./.static/dev/net/tun [EMAIL PROTECTED]:/dev# Looks good. [EMAIL PROTECTED]:/dev# find -name tun -delete [EMAIL PROTECTED]:/dev# find -name tun [EMAIL PROTECTED]:/dev# * reboot * [EMAIL PROTECTED]:/dev# find -name tun ./net/tun [EMAIL PROTECTED]:/dev# Conclusion: /dev/net/tun is there after a reboot both if I MAKEDEV it before and if I don't. That's great. I'm still hestitating to change the postinst because of the first test above -- if there's no /dev/net/tun and the package is installed and runs MAKEDEV tun then there's no /dev/net/tun and iodine won't work until the next reboot. Maybe I'm still misunderstanding the issue or not seeing the obvious; in any case I'd be grateful for some further help. Cheers, gregor -- .''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4 : :' : debian: the universal operating system - http://www.debian.org/ `. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/ `- BOFH excuse #191: Just type 'mv * /dev/null'.
signature.asc
Description: Digital signature