mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-07 19:34:26 +00:00
Add back TPM config counter section to gui-init
The section in gui-init that modifies the Heads TPM counter when signing config was accidentally removed. This change adds that section back.
This commit is contained in:
parent
31cf85b707
commit
2cacb15729
@ -75,7 +75,12 @@ update_checksums()
|
||||
# We don't need them after the user decides to sign
|
||||
rm -f /boot/kexec_package_trigger*
|
||||
|
||||
kexec-sign-config -p /boot \
|
||||
# sign and auto-roll config counter
|
||||
extparam=
|
||||
if [ "$CONFIG_TPM" = "y" ]; then
|
||||
extparam=-u
|
||||
fi
|
||||
kexec-sign-config -p /boot $extparam \
|
||||
|| die "Failed to sign default config"
|
||||
|
||||
# switch back to ro mode
|
||||
|
Loading…
x
Reference in New Issue
Block a user