-
04d5f150
by Benjamin Drung at 2023-02-06T14:06:33+01:00
config/postinst/postrm: Replace spaces by tabs
Using tabs instead of spaces will save some disk space.
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
-
4ccc765d
by Benjamin Drung at 2023-02-06T14:48:02+01:00
Stop creating /etc/timezone
/etc/localtime got turned into a symlink in 2016a-1 (see bug #803144),
now that /usr gets mounted from the initrd.
This now leaves /etc/timezone completely redundant, as you should get
exactly the same answer by readlink /etc/localtime -- and if you do
not get the same answer, you have an inconsistency. /etc/localtime
obviously "wins" for the actual clock (as that's what programs are
reading), but you presumably get the /etc/timezone value in some
"system configuration tool" packages which read /etc/timezone first.
As /etc/timezone is a Debianism and /etc/localtime the distro-agnostic
standard, stop creating /etc/timezone. But keep updating /etc/timezone
if present.
Closes: #822733
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
-
3edcce59
by Benjamin Drung at 2023-02-06T15:46:45+01:00
Remove /etc/timezone on upgrades as a one-time action
/etc/localtime got turned into a symlink in 2016a-1 (see bug #803144),
now that /usr gets mounted from the initrd.
This now leaves /etc/timezone completely redundant, as you should get
exactly the same answer by readlink /etc/localtime -- and if you do
not get the same answer, you have an inconsistency. /etc/localtime
obviously "wins" for the actual clock (as that's what programs are
reading), but you presumably get the /etc/timezone value in some
"system configuration tool" packages which read /etc/timezone first.
As /etc/timezone is a Debianism and /etc/localtime the distro-agnostic
standard, remove /etc/timezone on upgrades as a one-time action.
Closes: #822733
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
-
884739a6
by Benjamin Drung at 2023-02-06T18:11:50+01:00
tzdata.postinst: Introduce TIMEZONE variable
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
-
ad8e4391
by Benjamin Drung at 2023-02-06T18:15:35+01:00
tzdata.postinst: Only update /etc/localtime symlink if changed
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
-
eea83fd7
by Benjamin Drung at 2023-02-06T18:39:54+01:00
Remove /etc/timezone on purge
LP: #1683595
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
-
cf88896f
by Benjamin Drung at 2023-02-06T23:18:07+01:00
Test debconf configuration with autopkgtest
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>