Editing Gentoo template creation

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 109: Line 109:
 
Edit <code>/vz/private/1001/etc/inittab</code> and put a hash mark (#) at the beginning of the lines containing:
 
Edit <code>/vz/private/1001/etc/inittab</code> and put a hash mark (#) at the beginning of the lines containing:
  
<pre>
+
<pre>c?:1235:respawn:/sbin/agetty 38400 tty? linux</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>
 
 
 
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:
 
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>
 
<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.
 
This prevents <code>getty</code> and login from starting on ttys that do not exist in containers.

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: