mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-03-04 03:53:50 +01:00
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:
parent
815ae32dde
commit
85fa76051d
|
|
@ -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}'"
|
||||
|
|
|
|||
Loading…
Reference in a new issue