]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(dracut-systemd): run systemctl daemon-reload after remove_hostonly_files
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Wed, 9 Nov 2022 07:27:15 +0000 (08:27 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 11 Nov 2022 20:10:30 +0000 (20:10 +0000)
commite1058b07ea2acb1bdb2d52f778639e093b1ed8a6
treea8b2a0268a720481cffbf9071e1dd3a0cbe6a69a
parent60c4b2f76a146fcca59ada181b811099b5dcdc41
fix(dracut-systemd): run systemctl daemon-reload after remove_hostonly_files

Dependencies to systemd .device unit files are marked as "hostonly" in the
special file hostonly-files. These .device unit files can be removed using the
`rd.hostonly=0` command line parameter. But, since systemd v252
(https://github.com/systemd/systemd/pull/24054), the initrd-parse-etc.service
service does not run `systemctl daemon-reload`, so systemd keeps waiting
for these .device units to show up.
This means that if a hostonly device is not available for any reason at boot
time, using `rd.hostonly=0` has no effect and the system will not boot.
modules.d/98dracut-systemd/dracut-cmdline.sh