Gentoo as OpenVZ guest - UDEV Problems

Submitted by Nikolaus Polak on Sat, 03/02/2013 - 15:05
Kategorie

During the last weeks I tried to skip the udev update on my Gentoo-OpenVZ- guests (which are running since some years), because the needed kernel versio for OpenVZ-host systems simply doesn't exists. Now I searched for the perfect solution, tried some others - and found the nicest in the in the German Gentoo-Wiki:

Stop udev from starting during system boot:

# rc-update del udev sysinit
#  rc-update del udev-mount sysinit
# rc-update del udev-postmount default

change some lines in the /etc/rc.conf file:

rc_sys="openvz"
rc_parallel="NO"
rc_interactive="NO"
rc_depend_strict="YES"
rc_logger="YES"

and, if not already made, comment the unneeded terminals in /etc/inittab:

# TERMINALS
#c1:12345:respawn:/sbin/agetty 38400 tty1 linux
#c2:2345:respawn:/sbin/agetty 38400 tty2 linux
#c3:2345:respawn:/sbin/agetty 38400 tty3 linux
#c4:2345:respawn:/sbin/agetty 38400 tty4 linux
#c5:2345:respawn:/sbin/agetty 38400 tty5 linux
#c6:2345:respawn:/sbin/agetty 38400 tty6 linux

Done - my problems with other solutions like non-world-writeable /dev/null are fixed :-)