How to keep a particular kernel version?

Frank Murphy frankly3d at gmail.com
Sun Feb 26 11:29:07 UTC 2012


On 26/02/12 11:19, enclair wrote:
> head -n 6 /etc/grub2.cfg
> #
> # DO NOT EDIT THIS FILE
> #
> # It is automatically generated by grub2-mkconfig using templates
> # from /etc/grub.d and settings from /etc/default/grub
> #
>
It didn't work anyway.
Yum still pulled it out.

What did work in a test was:

copy /etc/grub2.cfg keep it safe somewhere.
copy the relevant kernel bits from /boot
keep them safe also.
The next kernel update,
merge the two copies of /etc/grub2.cfg

Copy the saved kernel bits back.
Now yum\rpm doesn't know anything about this kernel.


-- 
Regards,
Frank
"Jack of all, fubars"


More information about the users mailing list