Skip to content

Commit 5d62126

Browse files
DaanDeMeyerkeszybz
authored andcommitted
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. (cherry picked from commit f2aaa14)
1 parent d6b23dd commit 5d62126

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

units/systemd-pcrfs-root.service.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-4
2121
[Service]
2222
Type=oneshot
2323
RemainAfterExit=yes
24-
ExecStart={{ROOTLIBEXECDIR}}/systemd-pcrphase --file-system=/
24+
ExecStart={{ROOTLIBEXECDIR}}/systemd-pcrphase --graceful --file-system=/

units/[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-4
2222
[Service]
2323
Type=oneshot
2424
RemainAfterExit=yes
25-
ExecStart={{ROOTLIBEXECDIR}}/systemd-pcrphase --file-system=%f
25+
ExecStart={{ROOTLIBEXECDIR}}/systemd-pcrphase --graceful --file-system=%f

units/systemd-pcrmachine.service.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-4
2020
[Service]
2121
Type=oneshot
2222
RemainAfterExit=yes
23-
ExecStart={{ROOTLIBEXECDIR}}/systemd-pcrphase --machine-id
23+
ExecStart={{ROOTLIBEXECDIR}}/systemd-pcrphase --graceful --machine-id

0 commit comments

Comments
 (0)