[lug] Staying on a specific kernel in fedora
Michael J. Hammel
mjhammel at graphics-muse.org
Wed Jun 11 09:12:12 MDT 2014
On Wed, 2014-06-11 at 08:19 -0600, Orion Poplawski wrote:
> See /etc/sysconfig/kernel:
>
> # UPDATEDEFAULT specifies if new-kernel-pkg should make
> # new kernels the default
> UPDATEDEFAULT=yes
I changed this to NO this but will have to wait for the next update to
make sure it worked.
Also, I ran a modified version of these instructions:
http://linuxdrops.com/how-to-blacklist-or-disable-packages-in-centosrhel/
GRUB_DEFAULT=saved was already set.
So skipped running grub2-mkconfig.
Finding menu entries didn't work, but this did:
$ sudo grep "^menuentry" /boot/grub2/grub.cfg | cut -d "'" -f2
Fedora (3.14.4-100.fc19.x86_64) 19 (Schr��dinger���s Cat)
Fedora (3.13.11-100.fc19.x86_64) 19 (Schr��dinger���s Cat)
Fedora (3.12.5-200.fc19.x86_64) 19 (Schr��dinger���s Cat)
Fedora, with Linux 0-rescue-8155ce30fc09416583509ddb33805eae
Verified current saved entry:
$ grub2-editenv list
saved_entry=Fedora (3.14.4-100.fc19.x86_64) 19 (Schr��dinger���s Cat)
Updated the saved entry to the desired kernel using cut-n-paste:
$ sudo grub2-set-default "Fedora (3.12.5-200.fc19.x86_64) 19
(Schr??dinger???s Cat)"
mjhammel(tty0)$ grub2-editenv list
saved_entry=Fedora (3.12.5-200.fc19.x86_64) 19 (Schr??dinger???s Cat)
Not sure what will happen now because of those funky characters. I'm not
at that machine so can't test the reboot. The entry is saved
in /boot/grub2/grubenv which looks like text but has some long line of
hash marks in it so I don't know if I can edit it by hand to fix those
characters.
Assuming the menu entry is properly identified, it's just a matter of
whether the yum update will honor all of this.
> Also, running kernel will not be removed by yum.
That's good to know. I never really thought about what would happen if
it did remove it.
--
Michael J. Hammel Principal Software Engineer
mjhammel at graphics-muse.org http://graphics-muse.org
------------------------------------------------------------------------------
Reintarnation: Coming back to life as a hillbilly.
More information about the LUG
mailing list