summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2018-03-31 15:02:11 +0200
committer Eric Hameleers <alien@slackware.com>2018-03-31 15:02:11 +0200
commit737a60de83194f3ebc63149ccf54c712d22379ea (patch)
tree63132fcc0edd32f73113a2610b3fca374ad0c5a4 /make_slackware_live.sh
parent88a5bf94c6c23bd80d8952cf64e4224f8d398f1e (diff)
downloadliveslak-737a60de83194f3ebc63149ccf54c712d22379ea.tar.gz
liveslak-737a60de83194f3ebc63149ccf54c712d22379ea.tar.xz
Adapt to new behaviour of glibc-zoneinfo and the timeconfig script
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 40d1ae9..fd185c2 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1219,9 +1219,10 @@ fi
echo "LANG=en_US.UTF-8" > ${LIVE_ROOTDIR}/etc/locale.conf
echo "KEYMAP=us" > ${LIVE_ROOTDIR}/etc/vconsole.conf
-# Set timezone to UTC:
+# Set timezone to UTC, mimicking the 'timeconfig' script in Slackware:
cp -a ${LIVE_ROOTDIR}/usr/share/zoneinfo/UTC ${LIVE_ROOTDIR}/etc/localtime
-rm ${LIVE_ROOTDIR}/etc/localtime-copied-from
+# Could be absent so 'rm -f' to avoid script aborts:
+rm -f ${LIVE_ROOTDIR}/etc/localtime-copied-from
ln -s /usr/share/zoneinfo/UTC ${LIVE_ROOTDIR}/etc/localtime-copied-from
# Qt5 expects '/etc/localtime' to be a symlink, but in Slackware this is a