The branch main has been updated by jrtc27:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=ccbd3de0f377b62f980e205aebe0fedb5acc3415

commit ccbd3de0f377b62f980e205aebe0fedb5acc3415
Author:     Jessica Clarke <jrt...@freebsd.org>
AuthorDate: 2025-08-27 21:31:26 +0000
Commit:     Jessica Clarke <jrt...@freebsd.org>
CommitDate: 2025-08-27 21:35:54 +0000

    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:  5e16809c953f ("tzsetup: symlink /etc/localtime instead of copying")
---
 usr.sbin/bsdinstall/scripts/jail | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/bsdinstall/scripts/jail b/usr.sbin/bsdinstall/scripts/jail
index 4b2882dad477..0c3c7e125fdd 100755
--- a/usr.sbin/bsdinstall/scripts/jail
+++ b/usr.sbin/bsdinstall/scripts/jail
@@ -207,7 +207,7 @@ fi
 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 -P /etc/localtime $1/etc
 cp /var/db/zoneinfo $1/var/db
 
 # Run post-install script

Reply via email to