From e574dbd24c74cedd7f59263859a6551b914410a4 Mon Sep 17 00:00:00 2001 From: Ben Kohler Date: Wed, 9 Oct 2024 20:06:11 -0500 Subject: 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 --- targets/stage1/preclean-chroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-65-gdbad