[lxc-devel] [PATCH] lxc-alpine: create a default tty for console
Stéphane Graber
stgraber at ubuntu.com
Thu Nov 27 22:50:04 UTC 2014
On Thu, Nov 27, 2014 at 03:21:21PM +0100, Natanael Copa wrote:
> Create a tty so we get login prompt on console by default
>
> Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
> ---
> templates/lxc-alpine.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in
> index 47df559..ba27aea 100644
> --- a/templates/lxc-alpine.in
> +++ b/templates/lxc-alpine.in
> @@ -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
> --
> 2.1.3
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20141127/e68dc2a5/attachment.sig>
More information about the lxc-devel
mailing list