]> git.ipfire.org Git - thirdparty/systemd.git/commit
units: condition out a few services in the initrd
authorLennart Poettering <lennart@poettering.net>
Tue, 4 Jul 2023 20:31:11 +0000 (22:31 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 5 Jul 2023 01:58:47 +0000 (10:58 +0900)
commit49c55abcbefd737bcd47b3ae6105e9bdf831cc6b
tree70845ba1afa3760bf7cb45d90942d0fd0ef2677a
parent9f6e0bd417fa287dd1e7b541bfe0c60f04cc29e4
units: condition out a few services in the initrd

Let's make our units more robust to being added to an initrd:

1. systemd-boot-update only makes sense if sd-boot is available in /usr/
   to copy into the ESP. This is generally not the case in initrds, and
   even if it was, we shouldn't update the ESP from the initrd, but from
   the host instead.

2. The rfkill services save/restore rfkill state, but that information
   is only available once /var/ is mounted, which generally happens
   after the initrd transition.

3. utmp management is partly in /var/, and legacy anyway, hence don't
   bother with it in the initrd.
units/systemd-boot-update.service
units/systemd-rfkill.service.in
units/systemd-rfkill.socket
units/systemd-update-utmp-runlevel.service.in
units/systemd-update-utmp.service.in