heads/initrd/bin/usb-init
Francis Lam e9312e19bf
Cleanup of init to support server and desktop
Guarded linuxboot specific init entries
Removed Makefile entries into separate file (conflicts with srcing /etc/config)
Added CONFIG_BOOT_LOCAL/_REMOTE to control interface setup
Fixed CONFIG_TPM usage
2018-02-25 11:51:19 -08:00

14 lines
219 B
Bash
Executable File

#!/bin/sh
# Boot a USB installation
. /etc/functions
. /etc/config
if [ ! -z "$CONFIG_TPM" ]; then
# Extend PCR4 as soon as possible
tpm extend -ix 4 -ic usb
fi
usb-scan
recovery "Something failed during USB boot"