]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
core: never apply first boot presets in the initrd
authorLennart Poettering <lennart@poettering.net>
Wed, 15 Nov 2017 18:56:21 +0000 (19:56 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Nov 2017 10:28:17 +0000 (11:28 +0100)
commitfd1306121d014847b14e16e7f467faec619d71ff
tree187afb2af78e51893e5d53272350b790d0436f55
parent85cb4151242cdb0e01b7d9054d4d1fc67849271b
core: never apply first boot presets in the initrd

Presets are useful to initialize uninitialized /etc, but that doesn't
apply to the initrd.

Also, let's rename etc_empty → first_boot. After all, the variable
doesn't actually reflect whether /etc is really empty, it just reflects
whether /etc/machine-id existed originally or not. Moreover, we later on
directly initialize manager_set_first_boot() from it, hence let's just
name it the same way all through the codepath, to make this all less
confusing.

See: #7100
src/core/main.c
src/core/manager.c