heads/initrd/etc
Jonathon Hall 33c2cfb9b1
Root hash: Allow configuring from unset defaults
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>
2023-06-30 10:01:59 -04:00
..
distro/keys Add PureOS signing key 2023-06-21 13:26:46 -04:00
ash_functions Merge remote-tracking branch 'github-heads/master' into pureboot-27-heads-upstream 2023-06-21 15:15:23 -04:00
fstab fstab, init: Remove securityfs mount 2023-03-13 14:11:02 -04:00
functions Root hash: Allow configuring from unset defaults 2023-06-30 10:01:59 -04:00
group Build the Heads/NERF firmware for the Dell R630 server. 2017-09-20 10:29:14 -04:00
gui_functions gui-init: Implement blob jail feature 2023-06-21 13:26:47 -04:00
hosts localhost should be defined 2018-02-09 12:05:49 -05:00
luks-functions Add dual support for real bash and busybox's bash(ash) 2023-03-08 12:45:44 -05:00
motd restore /etc/motd 2018-03-08 01:14:41 -05:00
mtab add /etc/fstab and /etc/mtab to initrd image 2017-04-10 12:59:24 -04:00
passwd recovery, passwd: Use /bin/sh for interactive shells 2023-03-08 12:45:51 -05:00
shells Build the Heads/NERF firmware for the Dell R630 server. 2017-09-20 10:29:14 -04:00