From 1d1b1fa25ba259515db9b17210cf3c20a9957b1a Mon Sep 17 00:00:00 2001
From: Nick Rosbrook <enr0n@ubuntu.com>
Date: Thu, 7 Dec 2023 16:21:51 -0500
Subject: [PATCH 0024/1160] firstboot: remove /etc/localtime on --reset

The --reset option is supposed to remove all files configured by
firstboot, but currently it does not remove /etc/localtime.

(cherry picked from commit cd3207491d2a6ea633562925f46e88ad9cfb8aa5)
---
 src/firstboot/firstboot.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index f77a5f6266..17d344e980 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -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;
-- 
2.33.0