From: Daan De Meyer Date: Tue, 5 Mar 2024 07:51:14 +0000 (+0100) Subject: rename force argument of run_depmod to cache X-Git-Tag: v21~11^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a830771ed09724dc360c25ed2d4efae7b43f8b0;p=thirdparty%2Fmkosi.git rename force argument of run_depmod to cache Preparation for next commits --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index b36401355..52a2ec677 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2494,7 +2494,7 @@ def configure_clock(context: Context) -> None: (context.root / "usr/lib/clock-epoch").touch() -def run_depmod(context: Context, *, force: bool = False) -> None: +def run_depmod(context: Context, *, cache: bool = False) -> None: if context.config.overlay or context.config.output_format.is_extension_image(): return @@ -2509,7 +2509,7 @@ def run_depmod(context: Context, *, force: bool = False) -> None: modulesd = context.root / "usr/lib/modules" / kver if ( - not force and + not cache and not context.config.kernel_modules_exclude and all((modulesd / o).exists() for o in outputs) ): @@ -3167,7 +3167,7 @@ def build_image(context: Context) -> None: run_prepare_scripts(context, build=False) install_build_packages(context) run_prepare_scripts(context, build=True) - run_depmod(context, force=True) + run_depmod(context, cache=True) save_cache(context) reuse_cache(context)