aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2024-10-09 20:06:11 -0500
committerBen Kohler <bkohler@gentoo.org>2024-10-09 20:06:11 -0500
commite574dbd24c74cedd7f59263859a6551b914410a4 (patch)
treed3199168360fa7005a29e586a8bd95b42e866510
parentAdd Dist-kernel kconfig support (diff)
downloadcatalyst-e574dbd24c74cedd7f59263859a6551b914410a4.tar.gz
catalyst-e574dbd24c74cedd7f59263859a6551b914410a4.tar.bz2
catalyst-e574dbd24c74cedd7f59263859a6551b914410a4.zip
targets/stage1/preclean-chroot.sh: use symlink for /etc/localtime
This should be a symlink on modern systems. Bug: https://bugs.gentoo.org/938309 Signed-off-by: Ben Kohler <bkohler@gentoo.org>
-rwxr-xr-xtargets/stage1/preclean-chroot.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/targets/stage1/preclean-chroot.sh b/targets/stage1/preclean-chroot.sh
index 2dc761e9..193a12f9 100755
--- a/targets/stage1/preclean-chroot.sh
+++ b/targets/stage1/preclean-chroot.sh
@@ -15,7 +15,7 @@ setup_binutils
if [ -d "${ROOT}/usr/share/zoneinfo" ]
then
rm -f "${ROOT}/etc/localtime"
- cp "${ROOT}/usr/share/zoneinfo/Factory" "${ROOT}/etc/localtime"
+ ln -s ../usr/share/zoneinfo/Factory "${ROOT}/etc/localtime"
else
echo UTC > "${ROOT}/etc/TZ"
fi