Changes
→Edit /etc/inittab and /etc/init.d/halt.sh
Edit <code>/vz/private/1001/etc/inittab</code> and put a hash mark (#) at the beginning of the lines containing:
<pre>c?# TERMINALSc1:123512345:respawn:/sbin/agetty 38400 tty? tty1 linuxc2:2345:respawn:/sbin/agetty 38400 tty2 linuxc3:2345:respawn:/sbin/agetty 38400 tty3 linuxc4:2345:respawn:/sbin/agetty 38400 tty4 linuxc5:2345:respawn:/sbin/agetty 38400 tty5 linuxc6:2345:respawn:/sbin/agetty 38400 tty6 linux</pre> Just like that:<pre># 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</pre>
Edit <code>/vz/private/1001/etc/init.d/halt.sh</code> and put a hash mark (#) at the beginning of the lines containing:
<pre>sulogin -t 10 /dev/console</pre>
File <code>/vz/private/1001/etc/init.d/halt.sh</code> is deleted in Gentoo 11.2 and doesn't need to edit.
This prevents <code>getty</code> and login from starting on ttys that do not exist in containers.