heads/initrd/bin/usb-init
2023-04-17 16:17:55 -04:00

16 lines
272 B
Bash
Executable File

#!/bin/bash
# Boot a USB installation
. /etc/functions
. /tmp/config
TRACE "Under /bin/usb-init"
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"