Compare commits

...

2 Commits

Author SHA1 Message Date
Mike Yuan 5b97111d03
Merge 3630477261 into b7eefa1996 2024-11-21 17:04:30 +00:00
Mike Yuan 3630477261
units/initrd-parse-etc.service: replace systemctl start with OnSuccess= 2024-11-18 21:59:22 +01:00
1 changed files with 6 additions and 7 deletions

View File

@ -20,14 +20,13 @@ Conflicts=emergency.target
OnFailure=emergency.target OnFailure=emergency.target
OnFailureJobMode=replace-irreversibly 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 # 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. # use Conflicts=initrd-cleanup.service to be terminated before we switch root.
# Effectively, initrd-parse-etc.service acts as a synchronization point after # Effectively, initrd-parse-etc.service acts as a synchronization point after
# which cleanup of the initrd processes starts. # 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