]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: Fix the missing dependency in systemd-pcrproduct
authorMarc Pervaz Boocha <mboocha@sudomsg.com>
Sun, 11 Jan 2026 06:28:27 +0000 (11:58 +0530)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 12 Jan 2026 23:33:52 +0000 (08:33 +0900)
NvPCR need to read from /var/lib/nvpcr and the current unit file is
executed before /var is mounted. This adds the dep back so its always
runs after /var is mounted like systemd-tpm2-setup.service

units/systemd-pcrproduct.service.in

index 737ebff3bc67b1f759947bbc7b6a43cd7ea40d01..09e446c2a01b0cc800675427a5cdeecbad8bdfec 100644 (file)
@@ -14,6 +14,7 @@ DefaultDependencies=no
 Conflicts=shutdown.target
 After=tpm2.target
 Before=sysinit.target shutdown.target
+RequiresMountsFor=/var/lib/systemd/nvpcr
 ConditionPathExists=!/etc/initrd-release
 ConditionSecurity=measured-uki