]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
oracle template: don't clear console tty
authorDwight Engen <dwight.engen@oracle.com>
Mon, 18 Nov 2013 17:28:23 +0000 (12:28 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 19 Nov 2013 22:22:10 +0000 (16:22 -0600)
This allows the boot messages to be seen which are useful for monitoring
container startup.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-oracle.in

index d3d6ff9aa02a5b467cb687b800180a963ac3c39e..e86f26142c95907e38e3ef66ffb7cd56e7d23866 100644 (file)
@@ -238,7 +238,7 @@ EOF
     # start a getty on /dev/console, /dev/tty[1-4]
     if [ $container_release_major = "4" -o $container_release_major = "5" ]; then
         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 '/6:2345:respawn/d' $container_rootfs/etc/inittab
     fi
@@ -254,7 +254,7 @@ start on stopped rc RUNLEVEL=[2345]
 stop on runlevel [!2345]
 
 respawn
-exec /sbin/mingetty --nohangup /dev/console
+exec /sbin/mingetty --nohangup --noclear /dev/console
 EOF
     fi