]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: Add --graceful flag to pcrphase units
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 17 Jul 2023 08:11:54 +0000 (10:11 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Jul 2023 12:24:46 +0000 (14:24 +0200)
Some of the new units using systemd-pcrphase are missing the --graceful
flag which causes them to error if the tpm libraries are not installed.
Add --graceful just like in the other pcrphase units to make systemd-pcrphase
exit gracefully if the tpm libraries are missing.

units/systemd-pcrfs-root.service.in
units/systemd-pcrfs@.service.in
units/systemd-pcrmachine.service.in

index 432eb9fd8ce82815cd26697b5128a2b0c4455f3e..2fe1ec5008c52bd52a50c5aca0d0350ec45cdfca 100644 (file)
@@ -21,4 +21,4 @@ ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-4
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart={{ROOTLIBEXECDIR}}/systemd-pcrphase --file-system=/
+ExecStart={{ROOTLIBEXECDIR}}/systemd-pcrphase --graceful --file-system=/
index 6bbd4b72a53bc5547a72ea4418dc5afe31fe4559..6cf39eb9a7e6381f2915c854beb2d1d9ed159866 100644 (file)
@@ -22,4 +22,4 @@ ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-4
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart={{ROOTLIBEXECDIR}}/systemd-pcrphase --file-system=%f
+ExecStart={{ROOTLIBEXECDIR}}/systemd-pcrphase --graceful --file-system=%f
index f1c6ce9f265d40285a68bea9494cf35c6acf6f98..8c942c3b55e73fc90eb94152e8d24c5415afffdf 100644 (file)
@@ -20,4 +20,4 @@ ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-4
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart={{ROOTLIBEXECDIR}}/systemd-pcrphase --machine-id
+ExecStart={{ROOTLIBEXECDIR}}/systemd-pcrphase --graceful --machine-id