aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@users.noreply.github.com>2021-06-20 02:22:48 +0000
committerWarner Losh <imp@FreeBSD.org>2021-06-30 17:08:26 +0000
commit6ce785c50bfacf4fc8f7529e1bf6e2966dc5fac1 (patch)
treee93a66774b621bda6bd229864f3d1ec745c35d59
parent91604330e6073e49805849efdb34e7fdfdbe845b (diff)
downloadsrc-6ce785c50bfacf4fc8f7529e1bf6e2966dc5fac1.tar.gz
src-6ce785c50bfacf4fc8f7529e1bf6e2966dc5fac1.zip
bsdinstall: Also copy /var/db/zoneinfo
Per tzsetup(8), /etc/localtime and /var/db/zoneinfo go hand in hand. Reviewed by: imp@ Pull Request: https://github.com/freebsd/freebsd-src/pull/486
-rwxr-xr-xusr.sbin/bsdinstall/scripts/jail1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/bsdinstall/scripts/jail b/usr.sbin/bsdinstall/scripts/jail
index d9b5c8eb3cb4..3110f744207c 100755
--- a/usr.sbin/bsdinstall/scripts/jail
+++ b/usr.sbin/bsdinstall/scripts/jail
@@ -137,6 +137,7 @@ trap error SIGINT # SIGINT is bad again
bsdinstall config || error "Failed to save config"
cp /etc/resolv.conf $1/etc
cp /etc/localtime $1/etc
+cp /var/db/zoneinfo $1/var/db
# Run post-install script
if [ -f $TMPDIR/bsdinstall-installscript-ab ]; then