[SOLVED] /dev/net missing in Current's Fri Nov 20 21:52:15 UTC 2015 update
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/dev/net missing in Current's Fri Nov 20 21:52:15 UTC 2015 update
Updated two boxes and openvpn refuse to start on both because /dev/net/tun was missing. Any chance this is related to the switch to eudev? I got vpn running again by creating the tun node with:
Code:
mkdir /dev/net
mknod /dev/net/tun c 10 200
chmod 666 /dev/net/tun
tun probably isn't loaded unless needed by the hardware. This is the case with a lot of extra drivers used by hardware, but not specifically critical to function.
One that comes to mind is snd_emu10k1 and snd_emu10k1_synth. If you have a SoundBlaster Live series audio card, snd_emu10k1 will be loaded, but the Midi Synthesizer driver will not be autoloaded, and will require using a modprobe call in rc.local to load the driver for usage with midi playback software.
What I can't figure out is what module dependency caused the tun model to be loaded before the recent current update. I have no hardware that's dependent on tun, however, it needs to be loaded for VPN.
Updated two boxes and openvpn refuse to start on both because /dev/net/tun was missing. Any chance this is related to the switch to eudev? I got vpn running again by creating the tun node with:
Code:
mkdir /dev/net
mknod /dev/net/tun c 10 200
chmod 666 /dev/net/tun
If /dev/net/tun exists, does starting openvpn load the tun module?
Maybe openvpn needlessly checks the existence of /dev/net/tun and exits with an error when everything would work if it just proceeded.
Anyway, it wouldn't be a big deal to have eudev create /dev/net/tun (and maybe /dev/ppp as well, since those are the only important missing nodes). Both of those are created when the kernel modules for them are loaded, but maybe other things expect the nodes in /dev before that happens. It might be safer to just make sure things are like they were before.
If /dev/net/tun exists, does starting openvpn load the tun module?
Maybe openvpn needlessly checks the existence of /dev/net/tun and exits with an error when everything would work if it just proceeded.
Openvpn stops immediately if /dev/net/tun is not present. Agreed, it should proceed or even load the module itself.
Quote:
Originally Posted by volkerdi
Anyway, it wouldn't be a big deal to have eudev create /dev/net/tun (and maybe /dev/ppp as well, since those are the only important missing nodes). Both of those are created when the kernel modules for them are loaded, but maybe other things expect the nodes in /dev before that happens. It might be safer to just make sure things are like they were before.
I haven't been able to find any major diff with the current update that would prevent tun from loading (still digging into it). I thought /lib/udev/rules.d/50-udev-default.rules would have loaded tun when udev started with this line
Fixed. /dev/ppp was the other obvious static node that always existed with udev, but isn't created with eudev until the ppp_generic module is loaded. Maybe it should get the same treatment?
Code:
Sun Nov 22 23:37:53 UTC 2015
a/eudev-3.1.5-x86_64-5.txz: Rebuilt.
Add eudev startup message for kmsg. Thanks to Richard Narron.
Blacklist some more watchdog modules to work around broken hardware.
Thanks to Robby Workman.
Added /dev/net/tun.
Openvpn stops immediately if /dev/net/tun is not present. Agreed, it should proceed or even load the module itself.
I haven't been able to find any major diff with the current update that would prevent tun from loading (still digging into it). I thought /lib/udev/rules.d/50-udev-default.rules would have loaded tun when udev started with this line
Nope, that rule says when device node "tun" appears, give it 0666 permissions and name it "net/tun" - i.e. /dev/net/tun
However, a new eudev package is coming soon to fix that, and perhaps some later enhancements/improvements to the fix, but for now, it will work for you and others running into this.
EDIT: well, I see that Pat beat me
Last edited by rworkman; 11-22-2015 at 06:18 PM.
Reason: heh, volkerdi beat me :)
Fixed. /dev/ppp was the other obvious static node that always existed with udev, but isn't created with eudev until the ppp_generic module is loaded. Maybe it should get the same treatment?
Code:
Sun Nov 22 23:37:53 UTC 2015
a/eudev-3.1.5-x86_64-5.txz: Rebuilt.
Add eudev startup message for kmsg. Thanks to Richard Narron.
Blacklist some more watchdog modules to work around broken hardware.
Thanks to Robby Workman.
Added /dev/net/tun.
Nope, that rule says when device node "tun" appears, give it 0666 permissions and name it "net/tun" - i.e. /dev/net/tun
However, a new eudev package is coming soon to fix that, and perhaps some later enhancements/improvements to the fix, but for now, it will work for you and others running into this.
EDIT: well, I see that Pat beat me
Robby,
Thanks for working on this. Update eudev and now /dev/net/tun is where it should be.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.