]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: relax dependency on RootImage= storage from Requires= to Wants=
authorLuca Boccassi <bluca@debian.org>
Mon, 27 Nov 2023 23:32:31 +0000 (23:32 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 8 Dec 2023 02:16:31 +0000 (11:16 +0900)
commitebc751038018ece35675c04422e03a3685aaf79f
treedddd459325605dcbf332a765d98fdfabc16fa088
parentae7482b994e6a9bc8e033de9accd24b1e1ffe2ed
core: relax dependency on RootImage= storage from Requires= to Wants=

If a unit is running in an image and wants to survive a soft-reboot,
then it can't be deactivated by the storage of the image going away.
Relax the dependency to a Wants=. Access to the image is not needed
when the unit is running anyway, so downgrade to Wants=.
src/core/unit.c
test/TEST-82-SOFTREBOOT/test.sh
test/units/testsuite-82.sh