Skip to content

Commit bfdfc8d

Browse files
committed
fix(os): expose usr-merged modules to final depmod
1 parent 76d085e commit bfdfc8d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

os/mkosi/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ build_one() {
2929
"$work" "$stage" "$kstage" "$flavor"
3030
# NVIDIA and ZFS are assembled from independent cacheable stage trees.
3131
# Regenerate indexes only after every module tree has been merged.
32+
ln -sfn usr/lib "$kstage/lib"
3233
depmod -b "$kstage" "$KERNEL_VERSION-dstack"
34+
rm -f "$kstage/lib"
3335
if [[ $flavor == prod ]]; then
3436
# Yocto splits module DWARF into debug packages which are not shipped in
3537
# the production image. Keep BTF and loadable ELF metadata, but do not put

0 commit comments

Comments
 (0)