mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-27 09:25:21 +03:00
systemd: pre-pivot hooks runs after /sysroot is mounted
If rootflags=nofail, sysroot.mount won't strictly run "Before" initrd-root-fs.target. So we need to order dracut-pre-pivot after sysroot.mount.
This commit is contained in:
parent
b7c770e186
commit
55c912ae40
@ -10,7 +10,7 @@
|
||||
[Unit]
|
||||
Description=dracut pre-pivot and cleanup hook
|
||||
Documentation=man:dracut-pre-pivot.service(8)
|
||||
After=initrd.target initrd-parse-etc.service
|
||||
After=initrd.target initrd-parse-etc.service sysroot.mount
|
||||
After=dracut-initqueue.service dracut-pre-mount.service dracut-mount.service
|
||||
Before=initrd-cleanup.service
|
||||
ConditionPathExists=/etc/initrd-release
|
||||
|
Loading…
Reference in New Issue
Block a user