Skip to content

Commit 840edcd

Browse files
committed
sysbuild: Copy /etc/localtime as symlink
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 ccbd3de commit 840edcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/tools/sysbuild/sysbuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ fi
600600

601601
if [ -f /etc/localtime ] ; then
602602
log_it copy localtime
603-
cp /etc/localtime ${SBMNT}/etc
603+
cp -P /etc/localtime ${SBMNT}/etc
604604
if [ -f /var/db/zoneinfo ] ; then
605605
log_it copy zoneinfo
606606
cp /var/db/zoneinfo ${SBMNT}/var/db

0 commit comments

Comments
 (0)