(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
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)
):
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)