projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6f1551
)
firstboot: remove /etc/localtime on --reset
author
Nick Rosbrook
<enr0n@ubuntu.com>
Thu, 7 Dec 2023 21:21:51 +0000
(16:21 -0500)
committer
Yu 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
patch
|
blob
|
history
diff --git
a/src/firstboot/firstboot.c
b/src/firstboot/firstboot.c
index f77a5f62665f308ac7acd31692285ebc38537a9b..17d344e98037800875ba4ee1d70c37dd55325d61 100644
(file)
--- 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;