Skip to content

Commit f8873a9

Browse files
committed
Mount image root directory to /buildroot when running modinfo
1 parent 237df59 commit f8873a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mkosi/kmod.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ def resolve_module_dependencies(
9191
for i in range(0, len(nametofile.keys()), 8500):
9292
chunk = list(nametofile.keys())[i:i+8500]
9393
info += run(
94-
["modinfo", "--basedir", root, "--set-version", kver, "--null", *chunk],
94+
["modinfo", "--basedir", "/buildroot", "--set-version", kver, "--null", *chunk],
9595
stdout=subprocess.PIPE,
96-
sandbox=sandbox(mounts=[Mount(root, root, ro=True)]),
96+
sandbox=sandbox(mounts=[Mount(root, "/buildroot", ro=True)]),
9797
).stdout.strip()
9898

9999
log_step("Calculating required kernel modules and firmware")

0 commit comments

Comments
 (0)