Wayne Sallee wrote:
How do I set the default kernel to boot in /boot/grub/grub.cfg ?
I tried setting:
set default=2
Then I rebooted.
But that made no difference.
We need to see the grub.cfg file. Remember that the counting starts from
zero so
# Begin /boot/grub/grub.cfg
set default=1
set timeout=5
insmod ext2
set root=(hd0,2)
$Entry 0
menuentry "Linux 4.4.2-lfs-7.9-rc2" {
linux /vmlinuz-4.4.2-lfs-7.9-rc2 root=/dev/sda3 ro
}
#Entry 1
menuentry "Linux 4.6.2-lfs-7.9-1" {
linux /vmlinuz-4.6.2-lfs-7.9-1 root=/dev/sda3 ro
}
#Entry 2
menuentry "Linux 4.7.2-lfs-7.10-rc1 /dev/sda16" {
linux /vmlinuz-4.7.2-lfs-7.10-rc1 root=/dev/sda16 ro
boots vmlinuz-4.6.2-lfs-7.9-1 by default.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page