From c98dbcaece7691468cc046d0173c93551c11d22a Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Wed, 12 Jun 2013 15:00:03 +0000 Subject: [PATCH] Update --- xorg-x11-drv-nvidia.spec | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec index 11fc099..d8ea865 100644 --- a/xorg-x11-drv-nvidia.spec +++ b/xorg-x11-drv-nvidia.spec @@ -8,7 +8,7 @@ Name: xorg-x11-drv-nvidia Epoch: 1 Version: 319.23 -Release: 4%{?dist} +Release: 5%{?dist} Summary: NVIDIA's proprietary display driver for NVIDIA graphic cards Group: User Interface/X Hardware Support @@ -232,7 +232,31 @@ if [ "$1" -eq "1" ]; then KERNELS=`/sbin/grubby --default-kernel` DIST=`rpm -E %%{?dist}` ARCH=`uname -m` - [ -z $KERNELS ] && KERNELS=`ls /boot/vmlinuz-*${DIST}.${ARCH}{,.PAE}` + [ -z $KERNELS ] && KERNELS=`ls /boot/vmlinuz-*${DIST}.${ARCH}*` + for kernel in ${KERNELS} ; do + /sbin/grubby $ISGRUB1 \ + --update-kernel=${kernel} \ + --args="nouveau.modeset=0 rd.driver.blacklist=nouveau video=vesa:off $GFXPAYLOAD" \ + &>/dev/null + done + fi +fi || : + +%triggerpostun -- xorg-x11-drv-nvidia < 1:%{version}-5 +if [ "$1" -eq "1" ]; then + ISGRUB1="" + if [[ -f /boot/grub/grub.conf && ! -f /boot/grub2/grub.cfg ]] ; then + ISGRUB1="--grub" + GFXPAYLOAD="vga=normal" + else + echo "GRUB_GFXPAYLOAD_LINUX=text" >> %{_sysconfdir}/default/grub + grub2-mkconfig -o /boot/grub2/grub.cfg + fi + if [ -x /sbin/grubby ] ; then + KERNELS=`/sbin/grubby --default-kernel` + DIST=`rpm -E %%{?dist}` + ARCH=`uname -m` + [ -z $KERNELS ] && KERNELS=`ls /boot/vmlinuz-*${DIST}.${ARCH}*` for kernel in ${KERNELS} ; do /sbin/grubby $ISGRUB1 \ --update-kernel=${kernel} \ @@ -257,7 +281,7 @@ if [ "$1" -eq "0" ]; then if [ -x /sbin/grubby ] ; then DIST=`rpm -E %%{?dist}` ARCH=`uname -m` - KERNELS=`ls /boot/vmlinuz-*${DIST}.${ARCH}{,.PAE}` + KERNELS=`ls /boot/vmlinuz-*${DIST}.${ARCH}*` for kernel in ${KERNELS} ; do /sbin/grubby $ISGRUB1 \ --update-kernel=${kernel} \ @@ -329,6 +353,10 @@ fi ||: %changelog +* Wed Jun 12 2013 Nicolas Chauvet - 1:319.23-5 +- Relax kernel flavor cases +- Use triggerpostun to update config on updates + * Sun Jun 09 2013 Nicolas Chauvet - 1:319.23-4 - Fix C&P error with the serie