Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Update grub2 ? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1115
Location: Tri-Cities, WA USA

PostPosted: Sun Jan 24, 2016 3:03 am    Post subject: Update grub2 ? [solved] Reply with quote

I just built a new kernel on a new system.
The old kernel is uname -a
Linux ciclo 4.1.12-gentoo #10 SMP Sun Jan 3 19:05:10 2016 x86_64 AMD FX(tm)-4350 Quad-Core Processor AuthenticAMD GNU/Linux


# eselect kernel list
Available kernel symlink targets:
[1] linux-4.1.12-gentoo
[2] linux-4.1.15-gentoo-r1 *

Would I run grub2-mkconfig again?

grub2-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.3.0-gentoo
done

On my old no efi system I would edit the grub.conf file and manually set the kernel I just compiled to boot.
Code:

title Gentoo Linux 2.6.34-r1
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r1 root=/dev/sda3

title Gentoo Linux 2.6.34-r1 (rescue)
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r1 root=/dev/sda3 init=/bin/bb



_________________
Without diversity there can be no evolution:)


Last edited by cwc on Sun Jan 24, 2016 2:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1115
Location: Tri-Cities, WA USA

PostPosted: Sun Jan 24, 2016 2:11 pm    Post subject: solved Reply with quote

solved:

grub2-mkconfig -o /boot/grub/grub.cfg


I made a backup of the old grub.cfg in case my kernel crashes
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum