You are not logged in.
I'm creating a live USB, and it would be *extremely* useful to have Grub pass the kernel "root=LABEL=<whatever>" (right now I'm using UUID, but I'd like to switch over to label.)
I know that I can just modify /boot/grub/grub.cfg directly, but this is not supposed to be done - is there any way I can change something in /etc/default/grub or /etc/grub.d/?
Last edited by ThePacman (2013-11-16 17:58:10)
Fedora believes in "software freedom" - that is, restricting user software choices to those deemed appropriately licensed by The Powers That Be.
Arch believes in "freedom", as well - the user has control over his or her system and can do what he wants with it.
https://fedoraproject.org/wiki/Forbidden_items | https://wiki.archlinux.org/index.php/The_Arch_Way
Offline
Read this:
https://wiki.archlinux.org/index.php/GR … _arguments
Then mark as solved.
Offline
Aha, thanks.
(I'd been poking around at https://wiki.archlinux.org/index.php/GRUB#Using_labels and forgot to check the rest of the page..)
Fedora believes in "software freedom" - that is, restricting user software choices to those deemed appropriately licensed by The Powers That Be.
Arch believes in "freedom", as well - the user has control over his or her system and can do what he wants with it.
https://fedoraproject.org/wiki/Forbidden_items | https://wiki.archlinux.org/index.php/The_Arch_Way
Offline
Hold on, it seems that GRUB_CMDLINE_LINUX just gets appended, leaving my kernel getting passed two root= arguments, one with UUID and the other with label.
I've tried GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT, but neither seems to behave correctly.
(I did remember to run grub-mkconfig -o /boot/grub/grub.cfg after each change.)
Fedora believes in "software freedom" - that is, restricting user software choices to those deemed appropriately licensed by The Powers That Be.
Arch believes in "freedom", as well - the user has control over his or her system and can do what he wants with it.
https://fedoraproject.org/wiki/Forbidden_items | https://wiki.archlinux.org/index.php/The_Arch_Way
Offline
I don't think those instructions are telling you to change things in /etc/default/grub, but rather to actually change the generated entries in /boot/grub/grub.cfg.
Offline
I don't think those instructions are telling you to change things in /etc/default/grub, but rather to actually change the generated entries in /boot/grub/grub.cfg.
And what I'd specified in the original post is that I'm looking for a better way to change it, something that won't get overwritten when I run a grub-mkconfig, something that is.. well, not just editing that file.
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#Fedora believes in "software freedom" - that is, restricting user software choices to those deemed appropriately licensed by The Powers That Be.
Arch believes in "freedom", as well - the user has control over his or her system and can do what he wants with it.
https://fedoraproject.org/wiki/Forbidden_items | https://wiki.archlinux.org/index.php/The_Arch_Way
Offline
I believe you should add the following to /etc/default/grub
export GRUB_DISABLE_LINUX_UUID=true
export GRUB_DEVICE="LABEL=mylabel"| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
And what I'd specified in the original post is that I'm looking for a better way to change it, something that won't get overwritten when I run a grub-mkconfig, something that is.. well, not just editing that file.
Yeah, I read that. I just wanted to point out that the instructions you linked to were not what you apparently thought they were... which I guess you had realized by that point. It wasn't meant to be a solution, sorry.
Offline
I believe you should add the following to /etc/default/grub
export GRUB_DISABLE_LINUX_UUID=true export GRUB_DEVICE="LABEL=mylabel"
Perfect, thanks!
Fedora believes in "software freedom" - that is, restricting user software choices to those deemed appropriately licensed by The Powers That Be.
Arch believes in "freedom", as well - the user has control over his or her system and can do what he wants with it.
https://fedoraproject.org/wiki/Forbidden_items | https://wiki.archlinux.org/index.php/The_Arch_Way
Offline