Commit graph

9 commits

Author SHA1 Message Date
Gerd v. Egidy 24529bbb58 change yaml config loading logic to full merge
Previously when loading a YAML config, it overrode single values on the second hierarchy level.
But on all deeper levels new values were completely overwritten. This was inconsistent and poses
a problem for config entries that use these levels, like the ca-trust or the in-development autoterminal.

This change implements full merging of dictionaries on all levels to solve this. Values in files later
in precedence overwrite previous values. If the the old and the new config values are both dictionaries,
then the hierarchy levels are merged down recursively.

You can remove a previously existing dict entry again in a later file by assigning it an empty value.

Also fix handling of invalid YAMLs: ignore them instead of aborting execution
2022-04-23 23:18:23 +02:00
Gerd v. Egidy a100257d96 Add script and config.yaml parameter for late-loading of SystemRescueModules 2022-03-27 14:07:38 +00:00
Francois Dupoux 860df60dab Fix the type of the default definition of parameter "ar_attempts" (#266) 2022-02-23 07:19:31 +00:00
Francois Dupoux c15d70c558 Added support for loading remote yaml configuration files over http/https (#254) 2022-01-30 09:17:14 +00:00
fdupoux 21bd2294db Update exit status if there are errors in /usr/bin/sysrescue-configuration.lua 2022-01-29 17:59:54 +00:00
Francois Dupoux 0f0d899552 Allow to use option sysrescuecfg to restrict which local yaml config files to process (#254) 2022-01-29 12:34:03 +00:00
fdupoux 520b80e65e Improve processing of options passed on the boot command line 2022-01-28 21:50:17 +00:00
Francois Dupoux 35bd8314f3 Use generic logic for overriding config entries from values in yaml config files (#251) 2022-01-28 20:34:23 +00:00
Francois Dupoux ca6bcd6548 Implement the primary configuration processing script in lua (#251) 2022-01-26 20:07:53 +00:00