diff options
-rw-r--r-- | system/kvm-kmod/kvm-kmod.SlackBuild | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/system/kvm-kmod/kvm-kmod.SlackBuild b/system/kvm-kmod/kvm-kmod.SlackBuild index a50ce31330..0154402de5 100644 --- a/system/kvm-kmod/kvm-kmod.SlackBuild +++ b/system/kvm-kmod/kvm-kmod.SlackBuild @@ -75,7 +75,8 @@ sed "s,@KVMGROUP@,$KVMGROUP," $CWD/fixup_udev_rules.diff | patch -p1 || exit 1 CFLAGS="$SLKCFLAGS" \ ./configure \ - --arch=$ARCH + --arch=$ARCH \ + --kerneldir=/lib/modules/$KERNEL/source make \ PREFIX=/usr \ @@ -94,15 +95,18 @@ rm -r $PKG/usr/lib${LIBDIRSUFFIX} # Move /etc/udev to /lib/udev mv $PKG/etc/udev $PKG/lib -# Make modprobe prefer the new modules in /lib/modules/$KERNEL/extra/ +# Make modprobe prefer the new modules in /lib/modules/$KERNEL/updates/ # We don't want to install this with a .new suffix, because we want it # removed with the package. -mkdir -p $PKG/etc/depmod.d -cat << EOF > $PKG/etc/depmod.d/kvm-$KERNEL.conf -override kvm $KERNEL extra -override kvm-amd $KERNEL extra -override kvm-intel $KERNEL extra -EOF +#mkdir -p $PKG/etc/depmod.d +#cat << EOF > $PKG/etc/depmod.d/kvm-$KERNEL.conf +#override kvm $KERNEL updates +#override kvm-amd $KERNEL updates +#override kvm-intel $KERNEL updates +#EOF +# This isn't needed any more, it appears - seems that anything in the +# updates/x86/ directory automatically overrides the others. I'm going +# to leave the above snippet in place at least for now though... # We don't want the modules.* files in the package rm -f $PKG/lib/modules/${KERNEL}/modules.* |