mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
units/initrd-*: require initrd-fs.target rather than local-fs.target
This commit is contained in:
parent
39b83cdab3
commit
7d89ce303f
|
@ -10,8 +10,8 @@ Description=Cleaning Up and Shutting Down Daemons
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
ConditionPathExists=/etc/initrd-release
|
ConditionPathExists=/etc/initrd-release
|
||||||
OnFailure=emergency.target
|
OnFailure=emergency.target
|
||||||
Requires=local-fs.target swap.target
|
Requires=initrd-fs.target swap.target
|
||||||
After=local-fs.target swap.target
|
After=initrd-fs.target swap.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
|
@ -8,12 +8,13 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Reload Configuration from the Real Root
|
Description=Reload Configuration from the Real Root
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Requires=local-fs.target swap.target
|
Requires=initrd-fs.target swap.target sysroot.mount
|
||||||
After=local-fs.target swap.target
|
After=initrd-fs.target swap.target sysroot.mount
|
||||||
OnFailure=emergency.target
|
OnFailure=emergency.target
|
||||||
ConditionPathExists=/etc/initrd-release
|
ConditionPathExists=/etc/initrd-release
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStartPre=/usr/bin/systemctl daemon-reload
|
ExecStartPre=/usr/bin/systemctl daemon-reload
|
||||||
|
ExecStart=/usr/bin/systemctl start initrd-fs.target
|
||||||
ExecStart=/usr/bin/systemctl --no-block start initrd-cleanup.service
|
ExecStart=/usr/bin/systemctl --no-block start initrd-cleanup.service
|
||||||
|
|
|
@ -12,5 +12,5 @@ DefaultDependencies=no
|
||||||
Requires=initrd-switch-root.service
|
Requires=initrd-switch-root.service
|
||||||
Before=initrd-switch-root.service
|
Before=initrd-switch-root.service
|
||||||
AllowIsolate=yes
|
AllowIsolate=yes
|
||||||
Wants=initrd-udevadm-cleanup-db.service local-fs.target swap.target systemd-journald.service
|
Wants=initrd-udevadm-cleanup-db.service initrd-fs.target swap.target systemd-journald.service
|
||||||
After=initrd-udevadm-cleanup-db.service local-fs.target swap.target emergency.service emergency.target
|
After=initrd-udevadm-cleanup-db.service initrd-fs.target swap.target emergency.service emergency.target
|
||||||
|
|
Loading…
Reference in a new issue