]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
rename force argument of run_depmod to cache
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 5 Mar 2024 07:51:14 +0000 (08:51 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 5 Mar 2024 07:51:14 +0000 (08:51 +0100)
Preparation for next commits

mkosi/__init__.py

index b36401355583e359e6f57a593a4e0f736f20cfe5..52a2ec677791fc09c1ccfcaf4a548a25ba690dc4 100644 (file)
@@ -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)