From cd3207491d2a6ea633562925f46e88ad9cfb8aa5 Mon Sep 17 00:00:00 2001 From: Nick Rosbrook Date: Thu, 7 Dec 2023 16:21:51 -0500 Subject: [PATCH] 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. --- 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.25.1