From: Daan De Meyer Date: Thu, 2 Oct 2025 12:08:29 +0000 (+0200) Subject: Make sure inherited settings are applied for the default initrd X-Git-Tag: v26~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=280c78e681fb8718fa13bb9131b019f438b77dcf;p=thirdparty%2Fmkosi.git Make sure inherited settings are applied for the default initrd --- diff --git a/mkosi/config.py b/mkosi/config.py index 0c0cbd2ac..f97055019 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -5120,6 +5120,8 @@ def finalize_default_initrd( for s in SETTINGS: if s.scope in (SettingScope.universal, SettingScope.multiversal): context.cli[s.dest] = copy.deepcopy(finalized[s.dest]) + elif s.scope == SettingScope.inherit and s.dest in finalized: + context.config[s.dest] = copy.deepcopy(finalized[s.dest]) elif s.scope == SettingScope.initrd: # If the setting was specified on the CLI for the main config, we treat it as specified on the # CLI for the default initrd as well. Idem for config and defaults.