From: Nick Rosbrook Date: Thu, 7 Dec 2023 21:21:51 +0000 (-0500) Subject: firstboot: remove /etc/localtime on --reset X-Git-Tag: v256-rc1~1554 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd3207491d2a6ea633562925f46e88ad9cfb8aa5;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index f77a5f62665..17d344e9803 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;