mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
33c2cfb9b1
Allow configuring the root hash feature when the variables are not set initially. This worked on Librem boards because the boards all have defaults for these variables, but didn't work when those defaults were not present. Fix set_config function to put quotes around an added variable's value. Change load_config_value function to default to empty, so it can be used with non-boolean variables. None of the existing callers cared about the 'n' default (boolean variables should always be tested ="y" or !="y" anyway). Use load_config_value in config-gui.sh for boot device and the root hash parameters, so unset defaults do not cause a failure. Improve the prompts so the "current value" text only appears if there is a current value. Use set_config instead of replace_config so the variables will be added if needed. Prevent enabling the root hash feature if it hasn't been configured yet. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm> |
||
---|---|---|
.. | ||
distro/keys | ||
ash_functions | ||
fstab | ||
functions | ||
group | ||
gui_functions | ||
hosts | ||
luks-functions | ||
motd | ||
mtab | ||
passwd | ||
shells |