Browse Source

dracut/copy-kmods.sh: after copying kmod re-run depmod.

Juan RP 12 năm trước cách đây
mục cha
commit
2a5939bce4
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      dracut/copy-kmods.sh

+ 3 - 1
dracut/copy-kmods.sh

@@ -3,5 +3,7 @@
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
 # Copy all modules from initramfs to new rootfs.
+KVER=$(uname -r)
 mkdir -p $NEWROOT/usr/lib/modules
-cp -a /usr/lib/modules/* $NEWROOT/usr/lib/modules
+cp -a /usr/lib/modules/$KVER/kernel/* $NEWROOT/usr/lib/modules/$KVER/kernel/
+depmod -b $NEWROOT/usr