heads/initrd/bin/usb-init
Thierry Laurion 40c34453df
all scripts: replace TRACE manual strings with dynamic tracing by bash debug
Exception: scripts sourcing/calls within etc/ash_functions continues to use old TRACE functions until we switch to bash completely getting rid of ash.
This would mean getting rid of legacy boards (flash + legacy boards which do not have enough space for bash in flash boards) once and for all.

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
2024-02-01 15:48:27 -05:00

16 lines
255 B
Bash
Executable File

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