2017-04-29 13:40:34 -04:00
|
|
|
#!/bin/sh
|
2017-07-02 23:01:04 -04:00
|
|
|
# Boot a USB installation
|
2017-04-29 13:40:34 -04:00
|
|
|
|
|
|
|
. /etc/functions
|
2018-12-06 15:24:28 -08:00
|
|
|
. /tmp/config
|
2017-04-29 13:40:34 -04:00
|
|
|
|
2023-02-20 11:01:17 -05:00
|
|
|
TRACE "Under /bin/usb-init"
|
2023-02-18 12:58:43 -05:00
|
|
|
|
2022-08-25 14:43:31 -04:00
|
|
|
if [ "$CONFIG_TPM" = "y" -o "$CONFIG_TPM2_TOOLS" = "y" ]; then
|
2017-12-05 16:29:07 +08:00
|
|
|
# Extend PCR4 as soon as possible
|
2022-08-25 14:43:31 -04:00
|
|
|
tpmr extend -ix 4 -ic usb
|
2017-12-05 16:29:07 +08:00
|
|
|
fi
|
2017-04-29 13:40:34 -04:00
|
|
|
|
2023-01-26 15:03:03 -05:00
|
|
|
media-scan usb
|
2017-07-08 16:59:37 -04:00
|
|
|
recovery "Something failed during USB boot"
|