don't throw an error on nonexistent config entries for "copytoram" "checksum" "loadsrm"

This can happen when there is no config yaml at all, for example when booting via PXE
This commit is contained in:
Gerd v. Egidy 2022-06-06 13:34:09 +02:00
parent 815ae32dde
commit 85fa76051d

View file

@ -26,7 +26,7 @@ index 853652e..53215eb 100644
+ if [[ "${value}" == 'true' ]]; then
+ echo "Entry '.global.${curentry}' enabled in config: value='${value}'"
+ eval "${curentry}='y'"
+ elif [[ "${value}" == 'false' ]]; then
+ elif [[ "${value}" == 'false' ]] || [[ "${value}" == 'null' ]]; then
+ echo "Entry '.global.${curentry}' disabled in config: value='${value}'"
+ else
+ echo "ERROR: Found invalid value for '.global.${curentry}': value='${value}'"