]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Make sure inherited settings are applied for the default initrd
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 2 Oct 2025 12:08:29 +0000 (14:08 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 2 Oct 2025 12:46:30 +0000 (14:46 +0200)
mkosi/config.py

index 0c0cbd2ac3b45dcc8a85e4517d8caf7eeff678a7..f97055019a8970ffc017d7444413692c12523535 100644 (file)
@@ -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.