14
edits
Changes
m
→/etc/inittab: Change sed to comment out, not nuke in case you ever want to reverse etc.
A container does not have real ttys, so you have to disable getty in <code>/etc/inittab</code> (i. e. <code>/vz/private/123/etc/inittab</code>).
sed -i -e 's/^[0-9].*getty.*tty/d#&/g' /vz/private/123/etc/inittab
=== /etc/mtab ===