F20: yum update does not automatically update grub2
Michael Schwendt
mschwendt at gmail.com
Mon Dec 23 17:53:40 UTC 2013
On Mon, 23 Dec 2013 08:20:53 -0600, Ranjan Maitra wrote:
> > You could become superuser root, then run exactly the kernel-install
> > command found above, and check the exit return code and watch out for
> > any warning/error it might print.
>
> Thanks!
> $ sudo rpm -q --scripts kernel|tail -2
> posttrans scriptlet (using /bin/sh):
> /bin/kernel-install add
> 3.12.5-302.fc20.x86_64 /boot/vmlinuz-3.12.5-302.fc20.x86_64 || exit $?
>
> This is all I get.
You've only queried the kernel package for its scriptlets section.
You haven't tried to execute the command you can see in there.
> Not sure what it means/how to check the exit return code.
By evaluating/examining the $? variable after running a program.
> How does one debug the /bin/kernel-install script?
It's better to stop here right away, since I had assumed you would
either be capable of performing a few trouble-shooting tasks or be
interested enough to want to learn about it.
More information about the users
mailing list