Commit 691ac4a3 by Kaarle Ritvanen Committed by Stéphane Graber

lxc-alpine: copy /etc/TZ to container if present

parent 843a5874
...@@ -109,6 +109,11 @@ tty4:12345:respawn:/sbin/getty 38400 tty4 ...@@ -109,6 +109,11 @@ tty4:12345:respawn:/sbin/getty 38400 tty4
::ctrlaltdel:/sbin/reboot ::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/rc shutdown ::shutdown:/sbin/rc shutdown
EOF EOF
# set up timezone
if [ -f /etc/TZ ]; then
cp /etc/TZ "$rootfs/etc/TZ"
fi
# set up nameserver # set up nameserver
grep nameserver /etc/resolv.conf > "$rootfs/etc/resolv.conf" grep nameserver /etc/resolv.conf > "$rootfs/etc/resolv.conf"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment