rpms/xorg-x11-drv-nvidia/F-17 xorg-x11-drv-nvidia.spec,1.77,1.78

Nicolas Chauvet kwizart at rpmfusion.org
Sun May 20 12:01:20 CEST 2012


Author: kwizart

Update of /cvs/nonfree/rpms/xorg-x11-drv-nvidia/F-17
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv4802/F-17

Modified Files:
	xorg-x11-drv-nvidia.spec 
Log Message:
Fix nvidia post installation



Index: xorg-x11-drv-nvidia.spec
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-nvidia/F-17/xorg-x11-drv-nvidia.spec,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -r1.77 -r1.78
--- xorg-x11-drv-nvidia.spec	3 May 2012 16:58:24 -0000	1.77
+++ xorg-x11-drv-nvidia.spec	20 May 2012 10:00:49 -0000	1.78
@@ -7,7 +7,7 @@
 Name:            xorg-x11-drv-nvidia
 Epoch:           1
 Version:         295.49
-Release:         1%{?dist}
+Release:         2%{?dist}
 Summary:         NVIDIA's proprietary display driver for NVIDIA graphic cards
 
 Group:           User Interface/X Hardware Support
@@ -260,11 +260,14 @@
       ISGRUB1="--grub"
   fi
   if [ -x /sbin/grubby ] ; then
-    GRUBBYLASTKERNEL=`/sbin/grubby --default-kernel`
-    /sbin/grubby $ISGRUB1 \
-      --update-kernel=${GRUBBYLASTKERNEL} \
-      --args='nouveau.modeset=0 rd.driver.blacklist=nouveau' \
-       &>/dev/null
+    KERNELS=`/sbin/grubby --default-kernel`
+    [ -z $KERNELS ] && KERNELS=`ls /boot/vmlinuz-*%{?dist}.$(uname -m)*`
+    for kernel in ${KERNELS} ; do
+      /sbin/grubby $ISGRUB1 \
+        --update-kernel=${kernel} \
+        --args='nouveau.modeset=0 rd.driver.blacklist=nouveau' \
+         &>/dev/null
+    done
   fi
 fi || :
 
@@ -349,6 +352,9 @@
 
 
 %changelog
+* Sun May 20 2012 Nicolas Chauvet <kwizart at gmail.com> - 1:295.49-2
+- Fix %%post when grubby --default-kernel is broken
+
 * Thu May 03 2012 leigh scott <leigh123linux at googlemail.com> - 1:295.49-1
 - Update to 295.49
 


More information about the rpmfusion-commits mailing list