[ATrpms-users] kernel upgrade with Nvidia + lirc

Axel Thimm Axel.Thimm at ATrpms.net
Sat Jul 8 11:23:30 CEST 2006


On Sat, Jul 08, 2006 at 11:50:49AM +1000, Paul wrote:
> is there anyway I can script the upgrade of the kernel + nividia and 
> Lirc Kernel mods (kmdl)
> heres what I do now
> 
>    * yum update 
>    * [reboot ] 
>    * yum install nvidia-graphics8762-kmdl-$KVER
>    * yum install lirc-kmdl-$KVER
>    * [reboot]
> 
> Whats the easiest way to script the install of the kernel mods so I can 
> just reboot the once?
> ie can I do a yum install nvidia-graphics8762-kmdl-$newest_kernel 
> etc...BEFORE I reboot and using that kernel

Yes.

> Does the install of the kmdl install in the current kernel or the 
> downloaded kernel?

It doesn't matter, the kmdl looks into the appropriate folders, it
doesn't interfere with the running kernel.

I use something like the following (after having installed/upgrade the
kernel rpms). It works with arbitrary kernel rpms (kernel, kernel-smp,
kernel-suspend2-xen0 etc) and on both FC and RHEL.

kernels=`rpm -qf /boot/vmlinuz-* | grep -v "^file .* is not owned by any package"`
uname_rs=`rpm -ql $kernels | grep ^/boot/vmlinuz- | sed -e's,^/boot/vmlinuz-\(.*\)$,\1,'`
for kmdl in `rpm -qa \*kmdl\* | sed -e's,-kmdl-.*,-kmdl,' | sort -u`; do
  for uname_r in $uname_rs; do
    package=${kmdl}-$uname_r
    rpm -q $package > /dev/null 2>&1 || echo $package
  done
done | xargs -r smart install

(it's untested in the form above - I ripped this out of my
upgrading/installing anaconda scripts)
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-users/attachments/20060708/a7fe80d2/attachment.bin 


More information about the atrpms-users mailing list