mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-18 10:46:44 +00:00
8259d3ca1e
- Add TRACE function tracing output under etc/functions, depending on CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT enabled in board configs - Replace current DEBUG to TRACE calls in code, reserving DEBUG calls for more verbose debugging later on (output of variables etc) - add 'export CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT=y' in qemu-coreboot(fb)whiptail-tpm1(-hotp) boards to see it in action
16 lines
255 B
Bash
Executable File
16 lines
255 B
Bash
Executable File
#!/bin/sh
|
|
# Boot a USB installation
|
|
|
|
. /etc/functions
|
|
. /tmp/config
|
|
|
|
TRACE "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"
|