mkmodpack: kmod-10 still wants binary deplist

Hope upstream will finally do something about that --
either document the behaviour or fix it.
This commit is contained in:
Michael Shigorin 2012-10-15 15:06:07 +03:00
parent b0b284d83a
commit fef70f8de8

View File

@ -198,9 +198,8 @@ done
[ -n "$KERNEL" ] || KERNEL="$uname_r"
[ -d "/lib/modules/$KERNEL" ] || Fatal "Directory /lib/modules/$KERNEL does not exists."
# modprobe from kmod-9 *requires* modules.dep.bin;
# kernel-image-std-def doesn't contain it as of 3.4.7-alt1 (ALT #27640)
if [ ! -f /lib/modules/$KERNEL/modules.dep.bin ] && [ "`modprobe -V`" = "kmod version 9" ]; then
# modprobe from kmod-9+ *requires* modules.dep.bin (ALT #27640)
if [ ! -f /lib/modules/$KERNEL/modules.dep.bin ]; then
depmod -a -F "/boot/System.map-$KERNEL" "$KERNEL" ||
Fatal "Failed to create modules dependencies (full)."
fi