Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489448 - sys-boot/grub-2.00_p5107-r2 - setting GRUB_DISABLE_LINUX_UUID has no effect
Summary: sys-boot/grub-2.00_p5107-r2 - setting GRUB_DISABLE_LINUX_UUID has no effect
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-26 10:21 UTC by ta2002
Modified: 2013-10-28 17:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/boot/grub/grub.cfg generated by grub-mkconfig (grub.cfg,4.11 KB, text/plain)
2013-10-27 07:53 UTC, ta2002
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2013-10-26 10:21:15 UTC
In /etc/default/grub, there is a section that says:

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true

Uncommenting this has no effect (the grub.cfg files are identical whether this line is commented or not).
Comment 1 Mike Gilbert gentoo-dev 2013-10-26 15:08:00 UTC
It works fine for me. Please provide more information, like a copy of grub.cfg with the option enabled and disabled.
Comment 2 ta2002 2013-10-27 07:53:13 UTC
Created attachment 362040 [details]
/boot/grub/grub.cfg generated by grub-mkconfig

Copy of grub.cfg attached. The output absolutely identical whether or not GRUB_DISABLE_LINUX_UUID=true is set or commented out. Note that I have zeroed out all of the uuids in the attachment for privacy reasons.
Comment 3 Mike Gilbert gentoo-dev 2013-10-27 14:40:09 UTC
Re-read the description of GRUB_DISABLE_LINUX_UUID please.

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel

Indeed, grub is not passing UUIDs to the kernel.

linux	/kernel-3.8.13-gentoo root=/dev/sda6 ro

The UUIDs you are seeing are used by grub to control its own operation. There is no way to disable that in grub-mkconfig.

There is no difference with/without GRUB_DISABLE_LINUX_UUID because grub-mkconfig (/etc/grub.d/10_linux) also checks to see if you have an initramfs before passing root=UUID=... on the kernel command line.
Comment 4 ta2002 2013-10-28 14:03:06 UTC
(In reply to Mike Gilbert from comment #3)
> Re-read the description of GRUB_DISABLE_LINUX_UUID please.

I did read it, I just didn't understand it (and didn't realize that I didn't understand it - particularly the relevance of an initramfs).

> The UUIDs you are seeing are used by grub to control its own operation.
> There is no way to disable that in grub-mkconfig.

Guess I will just disable it in vim then. :)

Sorry to bother you about something that is not a bug (still think the documentation could be clearer, though).
Comment 5 Mike Gilbert gentoo-dev 2013-10-28 17:09:18 UTC
(In reply to throw_away_2002 from comment #4)

Not a problem.

However, I really don't understand your dislike of filesystem UUIDs; they are just randomly generated numbers that have no real affect on security or privacy.