aboutsummaryrefslogtreecommitdiffstats
path: root/main/lxc/0001-lxc-alpine-copy-etc-TZ-to-container-if-present.patch
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-01-26 09:27:22 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-01-26 09:27:22 +0200
commitfce7c18a3d8dd3661ba1a5fe456ed01f380d4928 (patch)
tree5c36d22a8fd3816fd0363ca99383391d3606e3ca /main/lxc/0001-lxc-alpine-copy-etc-TZ-to-container-if-present.patch
parent87dbd11393ca6f898bc7e1bff0ceb7496c5e1c29 (diff)
downloadaports-fce7c18a3d8dd3661ba1a5fe456ed01f380d4928.tar.gz
aports-fce7c18a3d8dd3661ba1a5fe456ed01f380d4928.tar.bz2
aports-fce7c18a3d8dd3661ba1a5fe456ed01f380d4928.tar.xz
main/lxc: lxc-alpine: copy /etc/TZ to container if present
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
+