Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In virtual environment drop PCR0 #156

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions sdbootutil
Original file line number Diff line number Diff line change
Expand Up @@ -2730,10 +2730,16 @@ enroll()
# system status
if [ "$arg_method" = "tpm2" ] || [ "$arg_method" = "tpm2+pin" ]; then
if [ -z "${FDE_SEAL_PCR_LIST}" ]; then
if systemd-detect-virt -q; then
echo "Virtualized systemd detected ($(systemd-detect-virt)). Dropping PCR0"
FDE_SEAL_PCR_LIST=""
else
FDE_SEAL_PCR_LIST="0,"
fi
if is_sdboot; then
FDE_SEAL_PCR_LIST="0,2,4,7,9"
FDE_SEAL_PCR_LIST+="2,4,7,9"
elif is_grub2_bls; then
FDE_SEAL_PCR_LIST="0,2,4,7,8,9"
FDE_SEAL_PCR_LIST+="2,4,7,8,9"
else
err "Bootloader not detected"
fi
Expand Down