aboutsummaryrefslogtreecommitdiffstats
path: root/main/lxc/0001-lxc-alpine-copy-etc-TZ-to-container-if-present.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/lxc/0001-lxc-alpine-copy-etc-TZ-to-container-if-present.patch')
-rw-r--r--main/lxc/0001-lxc-alpine-copy-etc-TZ-to-container-if-present.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/lxc/0001-lxc-alpine-copy-etc-TZ-to-container-if-present.patch b/main/lxc/0001-lxc-alpine-copy-etc-TZ-to-container-if-present.patch
new file mode 100644
index 0000000000..5ea417db5c
--- /dev/null
+++ b/main/lxc/0001-lxc-alpine-copy-etc-TZ-to-container-if-present.patch
@@ -0,0 +1,29 @@
+From e4a08b5ec1798c6c2fcf129018f666148aeedf8b Mon Sep 17 00:00:00 2001
+From: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+Date: Sat, 25 Jan 2014 22:58:58 +0200
+Subject: [PATCH] lxc-alpine: copy /etc/TZ to container if present
+
+Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+---
+ 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
+