]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: disable "update" units in the initramfs 19837/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 7 Jun 2021 11:29:19 +0000 (13:29 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 7 Jun 2021 11:40:08 +0000 (13:40 +0200)
commit294eace024b0e6c34cb64e3bb4f8958bb98ee00b
tree9298103dd5cce2b058a6488eb817f1d203f79df0
parentdc16846c26287fd2081eb3c4a73487c9b186e2b7
core: disable "update" units in the initramfs

Initially I wanted to add ConditionPathExists=!/etc/initrd-release in various
units (ldconfig.service, systemd-sysusers.service, systemd-hwdb-update.service,
systemd-journal-catalog-update, systemd-update-done.service), but I think it's
better to just disable the mechanism in the initrd altogether. Initrd images
are put together in a very particular way, and there is not need to do
post-update steps on them. If a unit from some other package winds up in the
initrd, we wouldn't want to invoke it either.

Also, any modifications are ephemeral, so any update would happen on every
use. And finally, initrd images are all about speed, and we shouldn't invoke
any unneeded services.
src/shared/condition.c