Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36185

UEFI gub2 config and different kernel versions

$
0
0
Hi. I've recently installed F19 on my new laptop (with UEFI and Secure Boot). I'm new to Fedora but have been using Ubuntu on my old laptop.

Having managed to get efibootmgr to boot into F19 by default rather than Window 8, I decided to change the grub config to boot faster (ie. reducing the timeout).

Looking at https://fedoraproject.org/wiki/GRUB_2, i also decided to check what grub entries were available, and what the default entry was.

Here are the grub entries:

Code:

[root@localhost ~]# grep ^menuentry /boot/efi/EFI/fedora/grub.cfg | cut -d "'" -f2
Fedora, with Linux 3.9.9-301.fc19.x86_64
Fedora, with Linux 3.9.8-300.fc19.x86_64
Fedora, with Linux 3.9.5-301.fc19.x86_64
Fedora, with Linux 0-rescue-7725dfc225d14958a625ddaaaea5962b
Windows Boot Manager

Here is the default entry:

Code:

[root@localhost ~]# grub2-editenv list
saved_entry=Fedora Linux, with Linux 3.9.5-301.fc19.x86_64

However, after booting, the kernel version booted is:

Code:

[root@localhost ~]# uname -r
3.9.9-301.fc19.x86_64

So, it seems the latest kernel version is used, and it doesn't matter that the default entry is pointing to an old kernel version. So, the conclusion is that I don't need to change the default entry to point to the latest kernel (which is what I want). Can someone confirm please?

Thanks.

BTW, for completeness here is the grub config:

Code:

[root@localhost ~]# more /etc/default/grub
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 $([ -x /usr/sbin/rhcrashkernel-para
m ] && /usr/sbin/rhcrashkernel-param || :) rd.luks=0 vconsole.font=latarcyrheb-s
un16 vconsole.keymap=uk rhgb quiet"
GRUB_DISABLE_RECOVERY="true"


Viewing all articles
Browse latest Browse all 36185

Trending Articles