]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
firstboot: remove /etc/localtime on --reset
authorNick Rosbrook <enr0n@ubuntu.com>
Thu, 7 Dec 2023 21:21:51 +0000 (16:21 -0500)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 8 Dec 2023 01:57:23 +0000 (10:57 +0900)
The --reset option is supposed to remove all files configured by
firstboot, but currently it does not remove /etc/localtime.

src/firstboot/firstboot.c

index f77a5f62665f308ac7acd31692285ebc38537a9b..17d344e98037800875ba4ee1d70c37dd55325d61 100644 (file)
@@ -1208,7 +1208,8 @@ static int process_reset(int rfd) {
                        "/etc/vconsole.conf",
                        "/etc/hostname",
                        "/etc/machine-id",
-                       "/etc/kernel/cmdline") {
+                       "/etc/kernel/cmdline",
+                       "/etc/localtime") {
                 r = reset_one(rfd, p);
                 if (r < 0)
                         return r;