From 280c78e681fb8718fa13bb9131b019f438b77dcf Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 2 Oct 2025 14:08:29 +0200 Subject: [PATCH] Make sure inherited settings are applied for the default initrd --- mkosi/config.py | 2 ++ 1 file changed, 2 insertions(+) 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. -- 2.47.3