From: Mike Yuan Date: Mon, 18 Nov 2024 20:59:22 +0000 (+0100) Subject: units/initrd-parse-etc.service: replace systemctl start with OnSuccess= X-Git-Tag: v258-rc1~1930 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77b40b4f60a71455e2b509cd85a50d8420703b61;p=thirdparty%2Fsystemd.git units/initrd-parse-etc.service: replace systemctl start with OnSuccess= --- diff --git a/units/initrd-parse-etc.service.in b/units/initrd-parse-etc.service.in index 1eef2bd9be8..69a91d5b9a2 100644 --- a/units/initrd-parse-etc.service.in +++ b/units/initrd-parse-etc.service.in @@ -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