Skip to content

Commit

Permalink
fix(systemd-pcrphase): only include systemd-pcrphase-initrd.service
Browse files Browse the repository at this point in the history
The only systemd-pcrphase related unit configured to run in the initrd is
systemd-pcrphase-initrd.service.
Both systemd-pcrphase.service and systemd-pcrphase-sysinit.service contain
`ConditionPathExists=!/etc/initrd-release`.
  • Loading branch information
aafeijoo-suse committed Jun 8, 2023
1 parent 1ef0073 commit cd6f683
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions modules.d/01systemd-pcrphase/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,13 @@ install() {

inst_multiple -o \
"$systemdutildir"/systemd-pcrphase \
"$systemdsystemunitdir"/systemd-pcrphase.service \
"$systemdsystemunitdir/systemd-pcrphase.service.d/*.conf" \
"$systemdsystemunitdir"/systemd-pcrphase-sysinit.service \
"$systemdsystemunitdir/systemd-pcrphase-sysinit.service/*.conf" \
"$systemdsystemunitdir"/systemd-pcrphase-initrd.service \
"$systemdsystemunitdir/systemd-pcrphase-initrd.service.d/*.conf" \
"$systemdsystemunitdir"/initrd.target.wants/systemd-pcrphase-initrd.service

# Install the hosts local user configurations if enabled.
if [[ $hostonly ]]; then
inst_multiple -H -o \
"$systemdsystemconfdir"/systemd-pcrphase.service \
"$systemdsystemconfdir/systemd-pcrphase.service.d/*.conf" \
"$systemdsystemconfdir"/systemd-pcrphase-sysinit.service \
"$systemdsystemconfdir/systemd-pcrphase-sysinit.service.d/*.conf" \
"$systemdsystemconfdir"/systemd-pcrphase-initrd.service \
"$systemdsystemconfdir/systemd-pcrphase-initrd.service.d/*.conf" \
"$systemdsystemconfdir"/initrd.target.wants/systemd-pcrphase-initrd.service
Expand Down

0 comments on commit cd6f683

Please sign in to comment.