heads/initrd/bin/usb-init
Thierry Laurion 8da5d5d723
Add dual support for real bash and busybox's bash(ash)
- modify bash to have it configured with -Os
2023-03-08 12:45:44 -05:00

16 lines
288 B
Bash
Executable File

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