]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
add console login in ubuntu
authorDaniel Lezcano <daniel.lezcano@free.fr>
Mon, 7 Jun 2010 09:33:55 +0000 (11:33 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Mon, 7 Jun 2010 09:33:55 +0000 (11:33 +0200)
Added console login

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
scripts/lxc-ubuntu.in

index ab3dbb46855539154e2f6815afcc8c301ce67bac..0c8be37d1fefb6b0a75b5b9c638c5e85ae3462e1 100644 (file)
@@ -63,6 +63,19 @@ script
        /sbin/initctl emit stopped JOB=udevtrigger
        /sbin/initctl emit started JOB=udev
 end script
+EOF
+
+    cat <<EOF > $rootfs/etc/init/console.conf
+# console - getty
+#
+# This service maintains a console on tty1 from the point the system is
+# started until it is shut down again.
+
+start on stopped rc RUNLEVEL=[2345]
+stop on runlevel [!2345]
+
+respawn
+exec /sbin/getty -8 38400 /dev/console
 EOF
 
     cat <<EOF > $rootfs/lib/init/fstab