heads/initrd/bin/usb-init
persmule 9bf131b601 Make TPM dependency optional and controlled by flag CONFIG_TPM
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.
2018-02-15 22:42:12 +08:00

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"