Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 85831a6478e14c4a8ac6452958c6e526 > files > 29

dkms-2.0.19-40.mga7.src.rpm

--- a/dkms	2017-05-06 18:23:21.555351761 +0100
+++ b/dkms	2017-05-06 18:48:08.653996973 +0100
@@ -1297,7 +1297,11 @@
     current_arch=`uname -m`
     [[ $current_arch = i?86 ]] && current_arch=i586
     if [ "${kernelver_array[0]}" == "$(uname -r)" -a "${arch_array[0]}" == "$current_arch" ]; then
-        /usr/sbin/dkms_autoload ${dest_module_name[@]}
+	# Don't load modules when performing an install or upgrade. The installer doesn't
+	# cope well with having its framebuffer device changed underneath it (mga#20368).
+	if [ -z "$DURING_INSTALL" ] ; then
+	    /usr/sbin/dkms_autoload ${dest_module_name[@]}
+	fi
     fi
 
     echo $""