]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Chroot for depmod and modinfo 2699/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 10 May 2024 10:55:23 +0000 (12:55 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 10 May 2024 11:33:10 +0000 (13:33 +0200)
commit353b0572f67fa49d315dc540b4f6008ea868d628
treef9f259a064059dd0a692ba0eb3bb68cad21678bf
parent8b850429505539fdedea32eb116119827c71ce9b
Chroot for depmod and modinfo

modinfo cannot always work with output from newer or different depmod.

Specifically, this fixes the case where modinfo sch_fq_codel fails with
"module not found" on CentOS Stream 9 images built from Fedora 40. When
depmod from Fedora 40 is used, modinfo in the image fails with "module
not found". When depmod from inside the image is used, modinfo succeeds
as expected.

We'd rather not do this but in this case there's no other option.
mkosi/__init__.py
mkosi/kmod.py
mkosi/sandbox.py