mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 04:57:55 +00:00
9bf131b601
if "CONFIG_TPM=y" is not present in the config file, functionalities needing TPM could be disabled, while leaving other functionalities intact. This will make Heads a more general-usage bootloader payload atop coreboot.
14 lines
220 B
Bash
Executable File
14 lines
220 B
Bash
Executable File
#!/bin/sh
|
|
# Boot a USB installation
|
|
|
|
. /etc/functions
|
|
. /etc/config
|
|
|
|
if [ "$CONFIG_TPM" = "y" ]; then
|
|
# Extend PCR4 as soon as possible
|
|
tpm extend -ix 4 -ic usb
|
|
fi
|
|
|
|
usb-scan
|
|
recovery "Something failed during USB boot"
|