mirror of
https://github.com/systemd/systemd.git
synced 2024-12-21 13:34:21 +03:00
units/initrd-parse-etc.service: replace systemctl start with OnSuccess=
This commit is contained in:
parent
c576ba7182
commit
77b40b4f60
@ -20,14 +20,13 @@ Conflicts=emergency.target
|
||||
OnFailure=emergency.target
|
||||
OnFailureJobMode=replace-irreversibly
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
||||
ExecStart={{LIBEXECDIR}}/systemd-sysroot-fstab-check
|
||||
|
||||
# We want to enqueue initrd-cleanup.service/start after we finished the part
|
||||
# above. It can't be part of the initial transaction, because non-oneshot units
|
||||
# below. It can't be part of the initial transaction, because non-oneshot units
|
||||
# use Conflicts=initrd-cleanup.service to be terminated before we switch root.
|
||||
# Effectively, initrd-parse-etc.service acts as a synchronization point after
|
||||
# which cleanup of the initrd processes starts.
|
||||
ExecStart=systemctl --no-block start initrd-cleanup.service
|
||||
OnSuccess=initrd-cleanup.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart={{LIBEXECDIR}}/systemd-sysroot-fstab-check
|
||||
|
Loading…
Reference in New Issue
Block a user