This makes it easier to adopt new settings or keep compat with older
versions of mkosi.
continue
if not (s := lookup_by_name.get(name)):
- die(f"{path.absolute()}: Unknown setting {name}")
+ logging.warning(f"{path.absolute()}: Unknown setting {name}")
+ continue
if section != s.section:
logging.warning(
)
if not (s := SETTINGS_LOOKUP_BY_NAME.get(name)):
- die(f"{path.absolute()}: Unknown setting {name}")
+ logging.warning(f"{path.absolute()}: Unknown setting {name}")
+ continue
image = self.config["image"]
- The `RuntimeScratch=` option has been dropped. Use `RuntimeSize=`
instead to grow the image before booting it.
- The `CDROM=` option has been dropped.
+- Unknown settings now generate a warning message instead of failing the
+ image build. This allows configs to work across a wider range of mkosi
+ versions while still taking advantage of newer settings. MinimumVersion
+ can still be used to enforce a minimum version of mkosi that knows all
+ required settings.
## v25