]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: make `/run/systemd/first-boot` available earlier
authorMichael Vogt <michael@amutable.com>
Fri, 3 Jul 2026 15:37:31 +0000 (17:37 +0200)
committerMichael Vogt <michael@amutable.com>
Thu, 9 Jul 2026 14:48:26 +0000 (16:48 +0200)
commiteb8227c671eed4ea913f9362eefe1dcf9720829a
treea3a410f8f7d0d8b76c64745d64aa44cfb7c87c05
parentcb7f95ff5f25a28afeadd668d3c0530005982b3b
core: make `/run/systemd/first-boot` available earlier

For the new systemd.credentials_boot_policy= setting we need
to be able to differenciate if its a firstboot or not early.

But `manager_set_first_boot` is run after `initialize_runtime()`
which imports the credentials. So we need to touch the file
so that the credentials_boot_policy setting can work.

Unfortunately we cannot just move manager_set_first_boot() earlier
because there is no manager yet at this point.
src/core/main.c
src/core/manager.c
src/core/manager.h