diff options
author | Eric Hameleers <alien@slackware.com> | 2021-01-06 20:34:07 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2021-01-06 20:34:07 +0100 |
commit | eaa4e6020ad134745ebd8d1d530aaa777915de5d (patch) | |
tree | 2fd7bef59e684757b9ce18db47c23312f6e08511 /liveinit.tpl | |
parent | ebde5d870ab197d704aa1c66ddb49d98a325e6a1 (diff) | |
download | liveslak-eaa4e6020ad134745ebd8d1d530aaa777915de5d.tar.gz liveslak-eaa4e6020ad134745ebd8d1d530aaa777915de5d.tar.xz |
Fix /etc/localtime file, needs to be a symlink
Diffstat (limited to '')
-rw-r--r-- | liveinit.tpl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/liveinit.tpl b/liveinit.tpl index f3c7d0a..ab6e4f5 100644 --- a/liveinit.tpl +++ b/liveinit.tpl @@ -1104,9 +1104,8 @@ EOT if [ ! -z "$TZ" -a -f /mnt/overlay/usr/share/zoneinfo/${TZ} ]; then # Configure custom timezone: echo "${MARKER}: Configuring timezone '$TZ'" - cp /mnt/overlay/usr/share/zoneinfo/${TZ} /mnt/overlay/etc/localtime + ln -s /usr/share/zoneinfo/${TZ} /mnt/overlay/etc/localtime rm -f /mnt/overlay/etc/localtime-copied-from - ln -s /usr/share/zoneinfo/${TZ} /mnt/overlay/etc/localtime-copied-from # Configure the hardware clock to be interpreted as localtime and not UTC: cat <<EOT > /mnt/overlay/etc/hardwareclock # /etc/hardwareclock @@ -1119,7 +1118,7 @@ EOT # file so QT5 fails to determine the timezone and falls back to UTC. Fix: echo ${TZ} > /mnt/overlay/etc/timezone - # KDE4 and PLASMA5 user timezone re-configuration: + # KDE4 and Plasma5 user timezone re-configuration: if [ -f /mnt/overlay/home/${LIVEUID}/.kde/share/config/ktimezonedrc ]; then sed -i -e "s%^LocalZone=.*%LocalZone=${TZ}%" \ /mnt/overlay/home/${LIVEUID}/.kde/share/config/ktimezonedrc |