don't parse yaml files twice when using copytoram

since recently /run/archiso/copytoram is bind-mounted to /run/archiso/bootmnt.
This means sysrescue-configuration.lua should just load yaml files from
/run/archiso/bootmnt and not both, otherwise they would be loaded twice.
This commit is contained in:
Gerd v. Egidy 2022-10-19 20:20:13 +02:00
parent c0cb014d46
commit 711a9f6ea5

View file

@ -212,7 +212,8 @@ config = { }
-- Merge one yaml file after the other in lexicographic order
-- ==============================================================================
print ("====> Merging configuration with values from yaml files ...")
confdirs = {"/run/archiso/bootmnt/sysrescue.d", "/run/archiso/copytoram/sysrescue.d"}
-- bootmnt is bind-mounted in case of copytoram, so it doesn't need to be searched explicitly
confdirs = {"/run/archiso/bootmnt/sysrescue.d"}
-- Process local yaml configuration files
for _, curdir in ipairs(confdirs) do