Skip to content

Commit ccbd3de

Browse files
committed
bsdinstall: Copy /etc/localtime as symlink in jail script
Without -P (or -R, which defaults to enabling -P) symlinks are dereferenced and so the target file is copied, not the symlink itself. Fixes: 5e16809 ("tzsetup: symlink /etc/localtime instead of copying")
1 parent ac7ed26 commit ccbd3de

File tree

1 file changed

+1
-1
lines changed
  • usr.sbin/bsdinstall/scripts

1 file changed

+1
-1
lines changed

usr.sbin/bsdinstall/scripts/jail

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ fi
207207
trap error SIGINT # SIGINT is bad again
208208
bsdinstall config || error "Failed to save config"
209209
cp /etc/resolv.conf $1/etc
210-
cp /etc/localtime $1/etc
210+
cp -P /etc/localtime $1/etc
211211
cp /var/db/zoneinfo $1/var/db
212212

213213
# Run post-install script

0 commit comments

Comments
 (0)