Commit 88927db9 by Dwight Engen Committed by Serge Hallyn

oracle template: don't clear console tty

This allows the boot messages to be seen which are useful for monitoring container startup. Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 2e83f720
...@@ -238,7 +238,7 @@ EOF ...@@ -238,7 +238,7 @@ EOF
# start a getty on /dev/console, /dev/tty[1-4] # start a getty on /dev/console, /dev/tty[1-4]
if [ $container_release_major = "4" -o $container_release_major = "5" ]; then if [ $container_release_major = "4" -o $container_release_major = "5" ]; then
sed -i 's|mingetty|mingetty --nohangup|' $container_rootfs/etc/inittab sed -i 's|mingetty|mingetty --nohangup|' $container_rootfs/etc/inittab
sed -i '/1:2345:respawn/i cns:2345:respawn:/sbin/mingetty --nohangup console' $container_rootfs/etc/inittab sed -i '/1:2345:respawn/i cns:2345:respawn:/sbin/mingetty --nohangup --noclear console' $container_rootfs/etc/inittab
sed -i '/5:2345:respawn/d' $container_rootfs/etc/inittab sed -i '/5:2345:respawn/d' $container_rootfs/etc/inittab
sed -i '/6:2345:respawn/d' $container_rootfs/etc/inittab sed -i '/6:2345:respawn/d' $container_rootfs/etc/inittab
fi fi
...@@ -254,7 +254,7 @@ start on stopped rc RUNLEVEL=[2345] ...@@ -254,7 +254,7 @@ start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345] stop on runlevel [!2345]
respawn respawn
exec /sbin/mingetty --nohangup /dev/console exec /sbin/mingetty --nohangup --noclear /dev/console
EOF EOF
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment