LWN.net Logo

GRUB 2.00 released

GRUB 2.00 released

Posted Jun 29, 2012 8:06 UTC (Fri) by HelloWorld (guest, #56129)
In reply to: GRUB 2.00 released by idupree
Parent article: GRUB 2.00 released

It should also be mentioned that entries like these can be put in /boot/grub/custom.cfg where they won't be overwritten the next time grub.cfg is regenerated.


(Log in to post comments)

GRUB 2.00 released

Posted Jun 29, 2012 15:48 UTC (Fri) by Aliasundercover (subscriber, #69009) [Link]

All the layers get tiresome. A configuration file for a script to write a configuration file which gets interpreted like a script...

Some honor this as the "Unix" way but it feels like pushing on a string to me.

GRUB 2.00 released

Posted Jun 29, 2012 16:54 UTC (Fri) by HelloWorld (guest, #56129) [Link]

If you don't want to use grub-mkconfig, nothing stops you from writing grub.cfg by hand, so what's the problem? I'm not saying everything is perfect with Grub2's configuration handling, it's just that I completely fail to see how Grub1 is any better.

GRUB 2.00 released

Posted Jun 29, 2012 21:08 UTC (Fri) by Aliasundercover (subscriber, #69009) [Link]

Right, then we get back to grub.cfg getting trashed by the automatic tools. Pick your poison, complicated script to generate a script vs. care to backup and fix a less complicated hand written config file every time the automatic stuff gets loose with it.

GRUB 2.00 released

Posted Jun 29, 2012 23:41 UTC (Fri) by HelloWorld (guest, #56129) [Link]

Entries in /boot/grub/custom.cfg won't be overwritten.

GRUB 2.00 released

Posted Jul 8, 2012 16:21 UTC (Sun) by hodoscek (subscriber, #5290) [Link]

What about /etc/grub.d/40_custom file. This is official place to put your stuff that you want to boot. After changing the file just run

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

I use it all the times with Gentoo. But Ubuntu can do it too. So I still compile my own kernels and extend the 40_custom file, similar to grub1 or lilo in the ancient times. Not much changed :-)

Even simpler

Posted Jul 12, 2012 12:35 UTC (Thu) by alex (subscriber, #1355) [Link]

I just have /boot/kernel-stable, /boot/kernel-linus and /boot/kernel-ajb and take care not to update all of them at once. I believe I also have the Gentoo default installed kernel just in case I hose all of my custom kernels but I've never needed to go that far.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds