]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-alpine: create a default tty for console
authorNatanael Copa <ncopa@alpinelinux.org>
Thu, 27 Nov 2014 14:21:21 +0000 (15:21 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 27 Nov 2014 22:50:31 +0000 (17:50 -0500)
Create a tty so we get login prompt on console by default

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-alpine.in

index 47df5592fadeb2bab3b9f7e2f50d9560d64e43f2..ba27aeaf1ad496abfb2f69a6933d516e0688383d 100644 (file)
@@ -121,6 +121,7 @@ configure_alpine() {
     cat >"$rootfs"/etc/inittab<<EOF
 ::sysinit:/sbin/rc sysinit
 ::wait:/sbin/rc default
+console:12345:respawn:/sbin/getty 38400 console
 tty1:12345:respawn:/sbin/getty 38400 tty1
 tty2:12345:respawn:/sbin/getty 38400 tty2
 tty3:12345:respawn:/sbin/getty 38400 tty3