units: Add --graceful flag to pcrphase units

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.
This commit is contained in:
Daan De Meyer 2023-07-17 10:11:54 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 70875a48ac
commit f2aaa14d37
3 changed files with 3 additions and 3 deletions

View 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=/

View 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

View 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