Summary: | Grub-1.99-r2 does not use UUID for setting root | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Peter Asplund <azpegath> |
Component: | [OLD] Core system | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | floppym |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Peter Asplund
2011-09-13 20:17:30 UTC
I was actually expecting "linux /vmlinuz-3.0.3-gentoo root=UUID=cf869dfa-1fae-47bf-a678-bbc5128c4df3 ro" on the line, but I'm not sure about the correct syntax. There seems to be some different alternatives when reading Arch's wiki or the Ubuntu forum. You need have an initramfs for grub to use the UUID option. You can see this on line 186 of /etc/grub.d/10_linux. Also, your initramfs must contain code to mount using a UUID for this to actually work. sys-kernel/genkernel or sys-kernel/dracut can create a suitable initramfs. Yes, I realized this an hour after writing the bug.. I'm sorry =) But another thing! Why does grub use both root=(hd*,*) and the "search" command? Shouldn't it only use the one the user has set in the config? (In reply to comment #3) > But another thing! Why does grub use both root=(hd*,*) and the "search" > command? Shouldn't it only use the one the user has set in the config? My guess: it probably searches in case the drive detection order gets mixed up. |