summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2021-01-12 16:53:09 +0100
committer Eric Hameleers <alien@slackware.com>2021-01-12 16:53:09 +0100
commit8c98f2c67c42f69f3949c2a6a5f6400b930564ab (patch)
tree4fc9e01acc0c2bfc3a17126d4763f2f5767375de
parent60c4f9c67d94c0180332c6877b8071266589ed28 (diff)
downloadliveslak-8c98f2c67c42f69f3949c2a6a5f6400b930564ab.tar.gz
liveslak-8c98f2c67c42f69f3949c2a6a5f6400b930564ab.tar.xz
liveinit: avoid an error visible during boot
-rw-r--r--liveinit.tpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/liveinit.tpl b/liveinit.tpl
index ab6e4f5..ad9d279 100644
--- a/liveinit.tpl
+++ b/liveinit.tpl
@@ -2,7 +2,7 @@
#
# Copyright 2004 Slackware Linux, Inc., Concord, CA, USA
# Copyright 2007, 2008, 2009, 2010, 2012 Patrick J. Volkerding, Sebeka, MN, USA
-# Copyright 2015, 2016, 2017, 2018 Eric Hameleers, Eindhoven, NL
+# Copyright 2015, 2016, 2017, 2018, 2019, 2020, 2021 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -1104,6 +1104,7 @@ EOT
if [ ! -z "$TZ" -a -f /mnt/overlay/usr/share/zoneinfo/${TZ} ]; then
# Configure custom timezone:
echo "${MARKER}: Configuring timezone '$TZ'"
+ rm -f /mnt/overlay/etc/localtime
ln -s /usr/share/zoneinfo/${TZ} /mnt/overlay/etc/localtime
rm -f /mnt/overlay/etc/localtime-copied-from
# Configure the hardware clock to be interpreted as localtime and not UTC: