[lxc-devel] [PATCH] lxc-alpine: copy /etc/TZ to container if present

Stéphane Graber stgraber at ubuntu.com
Sat Jan 25 23:03:40 UTC 2014


On Sat, Jan 25, 2014 at 11:09:54PM +0200, Kaarle Ritvanen wrote:
> Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen at datakunkku.fi>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  templates/lxc-alpine.in | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in
> index ac328a4..50a6a71 100644
> --- a/templates/lxc-alpine.in
> +++ b/templates/lxc-alpine.in
> @@ -109,6 +109,11 @@ tty4:12345:respawn:/sbin/getty 38400 tty4
>  ::ctrlaltdel:/sbin/reboot
>  ::shutdown:/sbin/rc shutdown
>  EOF
> +    # set up timezone
> +    if [ -f /etc/TZ ]; then
> +        cp /etc/TZ "$rootfs/etc/TZ"
> +    fi
> +
>      # set up nameserver
>      grep nameserver /etc/resolv.conf > "$rootfs/etc/resolv.conf"
>  
> -- 
> 1.8.3.1
> 
> _______________________________________________
> 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: 836 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140125/9851d208/attachment.pgp>


More information about the lxc-devel mailing list