View previous topic :: View next topic |
Author |
Message |
der bastler Apprentice
Joined: 13 Apr 2003 Posts: 257
|
Posted: Mon Nov 11, 2013 9:28 pm Post subject: [Solved] Manual update from Grub to Grub2 |
|
|
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.
@frank@troet.cafe |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Tue Nov 12, 2013 1:09 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|