mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 13:07:58 +00:00
3eb62eed1a
As part of the config gui we want to be able to have the system define new config options without them being lost if the user makes their own changes in CBFS. To allow that this change creates a function initiated in init that combines all /etc/config* files into /tmp/config. All existing scripts have been changed to source /tmp/config instead of /etc/config. The config-gui.sh script now uses /etc/config.user to hold user configuration options but the combine_configs function will allow that to expand as others want to split configuration out further. As it stands here are the current config files: /etc/config -- Compiled-in configuration options /etc/config.user -- User preferences that override /etc/config /tmp/config -- Running config referenced by the BIOS, combination of existing configs
14 lines
220 B
Bash
Executable File
14 lines
220 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
|
|
|
|
usb-scan
|
|
recovery "Something failed during USB boot"
|