heads/initrd/bin/usb-init
Thierry Laurion 5bc2bc88e4
All scripts and functions: Add DEBUG calling trace on console when CONFIG_DEBUG_OUTPUT is exported in board config
-qemu-coreboot-*whiptail-tpm1(-hotp) boards have 'export CONFIG_DEBUG_OUTPUT=y' by default now
2023-02-18 21:52:44 -05:00

16 lines
255 B
Bash
Executable File

#!/bin/sh
# Boot a USB installation
. /etc/functions
. /tmp/config
DEBUG "Under /bin/usb-init"
if [ "$CONFIG_TPM" = "y" ]; then
# Extend PCR4 as soon as possible
tpm extend -ix 4 -ic usb
fi
media-scan usb
recovery "Something failed during USB boot"