From: Daniel Lezcano Date: Mon, 7 Jun 2010 09:33:55 +0000 (+0200) Subject: add console login in ubuntu X-Git-Tag: lxc-0.7.0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6b1784e1e76426fa0e10c1f3e3f2705d0b62f86;p=thirdparty%2Flxc.git add console login in ubuntu Added console login Signed-off-by: Daniel Lezcano --- 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