From: Daan De Meyer Date: Fri, 19 Dec 2025 20:02:30 +0000 (+0100) Subject: Cache hwdb step X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=329ef51d489b00e30a4c52bb6d6324afef14399a;p=thirdparty%2Fmkosi.git Cache hwdb step Running hwdb takes roughly a second and is unlikely to ever rely on files added by extra trees or such, so let's cache the step instead of re-running it every single time. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 434b2bbe0..097185c33 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -3988,6 +3988,7 @@ def build_image(context: Context) -> None: run_prepare_scripts(context, build=True) fixup_vmlinuz_location(context) run_depmod(context, cache=True) + run_hwdb(context) save_cache(context) reuse_cache(context) @@ -4028,7 +4029,6 @@ def build_image(context: Context) -> None: run_preset(context) run_depmod(context) run_firstboot(context) - run_hwdb(context) # These might be removed by the next steps, so let's save them for later if needed. stub, kver, kimg, microcode = save_esp_components(context)