summaryrefslogtreecommitdiffstats
path: root/units/systemd-pcrphase.service.in
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-02-09 00:06:27 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2023-02-09 13:04:21 +0100
commit7ef09e2099a4f97ad40748d6b7c735b45aa4c990 (patch)
treec1e92adc56c8c15352f4ee7ae07847938d6adc5c /units/systemd-pcrphase.service.in
parentbootctl: Add missing %m (diff)
downloadsystemd-7ef09e2099a4f97ad40748d6b7c735b45aa4c990.tar.xz
systemd-7ef09e2099a4f97ad40748d6b7c735b45aa4c990.zip
units: change assert to condition to skip running in initrd/os
These units are also present in the initrd, so instead of an assert, just use a condition so they are skipped where they need to be skipped. Fixes https://github.com/systemd/systemd/issues/26358
Diffstat (limited to 'units/systemd-pcrphase.service.in')
-rw-r--r--units/systemd-pcrphase.service.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/units/systemd-pcrphase.service.in b/units/systemd-pcrphase.service.in
index 5ba437e5b1..558f268857 100644
--- a/units/systemd-pcrphase.service.in
+++ b/units/systemd-pcrphase.service.in
@@ -12,7 +12,7 @@ Description=TPM2 PCR Barrier (User)
Documentation=man:systemd-pcrphase.service(8)
After=remote-fs.target remote-cryptsetup.target
Before=systemd-user-sessions.service
-AssertPathExists=!/etc/initrd-release
+ConditionPathExists=!/etc/initrd-release
ConditionSecurity=tpm2
ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f