Package: live-config
Version: 11.0.5
Severity: normal
Tags: patch
Dear Debian Live Team,
tzdata debian/NEWS says /etc/timezone is deprecated:
https://salsa.debian.org/glibc-team/tzdata/-/blob/sid/debian/NEWS
However, it is still being created by live-config's 0070-tzdata component.
Untested patch below.
Thank you!
Daniel Lewart
Urbana, Illinois
diff -ru a/components/0070-tzdata b/components/0070-tzdata
--- a/components/0070-tzdata 2024-05-25 12:26:38.000000000 -0500
+++ b/components/0070-tzdata 2025-09-30 00:00:00.000000000 -0500
@@ -3,7 +3,7 @@
. /usr/lib/live/config.sh
## live-config(7) - System Configuration Components
-## Copyright (C) 2016-2020 The Debian Live team
+## Copyright (C) 2016-2025 The Debian Live team
## Copyright (C) 2006-2015 Daniel Baumann <[email protected]>
##
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
@@ -13,19 +13,6 @@
#set -e
-Cmdline ()
-{
- # Reading kernel command line
- for _PARAMETER in ${LIVE_CONFIG_CMDLINE}
- do
- case "${_PARAMETER}" in
- live-config.timezone=*|timezone=*)
- LIVE_TIMEZONE="${_PARAMETER#*timezone=}"
- ;;
- esac
- done
-}
-
Init ()
{
# Checking if package is installed or already configured
@@ -40,16 +27,6 @@
Config ()
{
- if [ -n "${LIVE_TIMEZONE}" ]
- then
- _AREA="$(echo ${LIVE_TIMEZONE} | cut -f1 -d '/')"
- _ZONE="$(echo ${LIVE_TIMEZONE} | cut -f2 -d '/')"
- else
- _AREA="Etc"
- _ZONE="UTC"
- fi
-
- echo "${_AREA}/${_ZONE}" > /etc/timezone
rm -f /etc/localtime
dpkg-reconfigure -f noninteractive -p critical tzdata
@@ -57,6 +34,5 @@
touch /var/lib/live/config/tzdata
}
-Cmdline
Init
Config