From d6b1784e1e76426fa0e10c1f3e3f2705d0b62f86 Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Mon, 7 Jun 2010 11:33:55 +0200 Subject: [PATCH] add console login in ubuntu Added console login Signed-off-by: Daniel Lezcano --- scripts/lxc-ubuntu.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/lxc-ubuntu.in b/scripts/lxc-ubuntu.in index ab3dbb468..0c8be37d1 100644 --- a/scripts/lxc-ubuntu.in +++ b/scripts/lxc-ubuntu.in @@ -63,6 +63,19 @@ script /sbin/initctl emit stopped JOB=udevtrigger /sbin/initctl emit started JOB=udev end script +EOF + + cat < $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 < $rootfs/lib/init/fstab -- 2.47.2