heads/initrd/bin/usb-init
Thierry Laurion 299977926c
usb-scan->media-scan: usb-init calling media-scan usb
media-scan accepts direct input of existing blkid and mount that passed device to /media
2023-01-26 15:38:58 -05:00

14 lines
226 B
Bash
Executable File

#!/bin/sh
# Boot a USB installation
. /etc/functions
. /tmp/config
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"