]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Don't run depmod unless needed 1855/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 1 Sep 2023 12:32:29 +0000 (14:32 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 1 Sep 2023 14:03:56 +0000 (16:03 +0200)
commit0e7faae2a6d04fc775c50ede4dd99a18354ea20f
treead9784c5ff6d994361858ee07dc0ce7e611d9641
parent139172b70ed7455bc8586eb1255624dfc49edbcc
Don't run depmod unless needed

For distro kernels, depmod is already executed by the package
manager, so let's make sure we don't rerun it unless needed.

To make this work, we have to run depmod and modinfo from inside the
image, as running modinfo from the host on files generated by depmod
from the image can lead to all sorts of compatibility issues so we opt
to run both depmod and modinfo from inside the image.
mkosi/__init__.py
mkosi/kmod.py
mkosi/run.py