Fitzcarraldo wrote:1. It appears from the manual that GRUB_DISABLE_LINUX_UUID only covers the "root=" part of the linux boot line.
2. Your running of grub-mkconfig didn't change "root=UUID=" to "root=".
So it seems using GRUB_DISABLE_LINUX_UUID is not the solution to your need, although that still does not explain point 2, as the grub.cfg you posted should at least have "root=/dev/sd<d><p>" instead of "root=UUID=". Is grub-mkconfig actually touching your /boot/grub/grub.cfg, I wonder?
I can confirm that it is rewriting the grub.cfg because it was only after I included "NOX" on line 14 0f the /etc/default/grub that the "NOX" kernel option appeared in line 87 of the /boot/grub/grub.cfg....
Fitzcarraldo wrote:Anyway, as it seems GRUB_DISABLE_LINUX_UUID is not going to do what you want, I think to achieve your goal you would need to rebuild your kernel using genkernel without the
--disklabel switch (see
HOWTO: Upgrade kernel using genkernel).
Caveat lector: the usual disclaimers apply.
BUT if I did that (even if I didn't screw up the new kernel some how) wouldn't compiling it without the --disklabel switch also disable the kernel's ability to respond to the use of LABEL=label IE: the "root=LABEL=Esaba_lap-6" in my boot partition's menu.lst & probably also those like "LABEL=Esaba_lap6" & "LABEL=SWP_lap12" in my fstab???
I might strongly dislike UUID, (preferring to use the LABEL form of persistent device identification) But I do NOT want to revert back to the old /dev/sd${x}${y} method...
I've been looking around a bit and I suspect that part of the problem might be in the file /etc/default/sabayon-grub { see:
http://pastebin.com/Tn0sGNDm } Which seems to HARDCODE some UUID values into GRUB_CMDLINE_LINUX. I suspect these values might be overriding the GRUB_DISABLE_LINUX_UUID=true option in /etc/default/grub. Though Even if so, it wouldn't explain why the menuentry for the other Linux distros are still using root=UUID=uuid in their kernel options...
I also found some clues in:
http://techpatterns.com/forums/about1575.htmlhttp://sourceforge.net/apps/mediawiki/b ... ems:searchhttp://ubuntuforums.org/showthread.php?t=1530532&page=2http://www.linuxquestions.org/questions ... ow-819474/It seems that with some other Linux the GRUB_DISABLE_LINUX_UUID=true option actually does something. I found a listing of a {I think debian based} patch for /etc/grub.d/10_linux that looked promising. So I backed up my etc/grub.d and gave it a whirl using grub-mkconfig -o /boot/grub/grub.cfg.out. But I couldn't find any difference between "boot/grub/grub.cfg.out" & "boot/grub/grub.cfg" {sigh}
On the other hand when I commented out the lines in /etc/default/grub that called /etc/default/sabayon-grub and repeated the grub-mkconfig -o /boot/grub/grub.cfg.out , the resulting file actually used my LABELs for the Sabayon menuentry kernel options.(Though it also lost all references to "resume=", "real_resume=", & "splash=" also all sabayon menuenry items had "nox" just before they said "vga=normal" instead of saying "vga=781", and the main menuentry also had "ro ro" instead of "ro". Do I don't think bypassing this file is the answer. But maybe if I edited it instead...
OK I edited /etc/default/sabayon-grub to replace the hardcoded UUID stuff with hard coded LABEL versions and again ran "grub-mkconfig -o /boot/grub/grub.cfg.out" I finally got reasonable LABEL based menuenty stansas for Sabayon...
However the file /etc/default/sabayon-grub carries one of those do not edit warnings, so It's probable that some future update will just put the uuid stuff back. So if you know what I can edit to prevent future updates from trashing my changes, please do tell.
Now about the other half of the problem:
There were a couple of clues about getting the search line(s) to use --label instead of --fs-uuid etc... But they all wanted an edit of /usr/lib/grub/grub-mkconfig_lib, and there doesn't seem to be a /usr/lib/grub anything on Sabayon. Could you tell me where they hid the grub-mkconfig configuration stuff that other distros put in /usr/lib/grub/grub-mkconfig_lib????
--
joe3