Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Manual update from Grub to Grub2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
der bastler
Apprentice
Apprentice


Joined: 13 Apr 2003
Posts: 230

PostPosted: Mon Nov 11, 2013 9:28 pm    Post subject: [Solved] Manual update from Grub to Grub2 Reply with quote

Official migration guide: http://www.gentoo.org/doc/en/grub2-migration.xml

Well, the official guide did not work for me. So I just converted my grub.conf to a working grub.cfg without mkconfig and now want to share the results.

My SSD layout:
Code:
/dev/sda1   /boot          ext2
/dev/sda2   /              ext4
/dev/sda3   /home          ext4


/boot/grub/grub.conf
Quote:
default 0
timeout 0
hiddenmenu
splashimage=(hd0,0)/grub/splash.xpm.gz

title Gentoo Linux 3.x Enterprise
root (hd0,0)
kernel /bzImage root=/dev/sda2 splash=silent,fadein,theme:enterprise CONSOLE=/dev/tty1 quiet
initrd /fbsplash-enterprise


/boot/grub/grub.cfg
Quote:
default=0
timeout=0

menuentry 'Gentoo Linux 3.x Enterprise' {
root=hd0,1
linux /bzImage root=/dev/sda2 splash=silent,fadein,theme:enterprise CONSOLE=/dev/tty1 quiet
initrd /fbsplash-enterprise
}


Worked for me and fits nicely in my kernel update workflow (make, make modules_install, copy new bzImage to boot).
_________________
Tempus fugit.
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2381
Location: Wisconsin (USA)

PostPosted: Tue Nov 12, 2013 1:09 am    Post subject: Reply with quote

I used to always do it that way, but I've switched to letting genkernel build & install the kernel (using custom .config), then I run grub2-mkconfig and it finds the kernels and makes the menu.

It's a little more complex to set up but it does take care of getting the initrd together for raid+lvm, and it keeps previous kernels around with easy access in case they are needed to troubleshoot a problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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