grub/docs
Peter Jones b78d570a36 templates: Add GRUB_DISABLE_UUID
The grub-mkconfig and 10_linux scripts by default attempt to use a UUID to
set the root kernel command line parameter and the $root GRUB environment
variable.

The former can be disabled by setting the GRUB_DISABLE_LINUX_UUID variable
to "true", but there is currently no way to disable the latter.

The generated grub config uses the search command with the --fs-uuid option
to find the device that has to be set as $root, i.e:

 search --no-floppy --fs-uuid --set=root ...

This is usually more reliable but in some cases it may not be appropriate,
so this patch introduces a new GRUB_DISABLE_UUID variable that can be used
to disable searching for the $root device by filesystem UUID.

When disabled, the $root device will be set to the value specified in the
device.map as found by the grub-probe --target=compatibility_hint option.

When setting GRUB_DISABLE_UUID=true, the GRUB_DISABLE_LINUX_UUID and
GRUB_DISABLE_LINUX_PARTUUID variables will also be set to "true" unless
these have been explicitly set to "false".

That way, the GRUB_DISABLE_UUID variable can be used to force using the
device names for both GRUB and Linux.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Nicholas Vinson <nvinson234@gmail.com>
2019-10-28 15:35:40 +01:00
..
man Implement syslinux parser. 2013-12-18 05:28:05 +01:00
autoiso.cfg * docs/autoiso.cfg: New file. 2013-10-27 20:34:24 +01:00
fdl.texi 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org> 2008-03-01 17:27:51 +00:00
font_char_metrics.png GRUB developper manual based on existing Internals section and 2011-04-03 15:30:28 +02:00
font_char_metrics.txt GRUB developper manual based on existing Internals section and 2011-04-03 15:30:28 +02:00
grub-dev.texi docs: Bootstrap changes required for older distros 2019-06-24 12:02:20 +02:00
grub.cfg * docs/grub.cfg: Update. 2012-05-04 00:30:15 +02:00
grub.texi templates: Add GRUB_DISABLE_UUID 2019-10-28 15:35:40 +01:00
Makefile.am Fix make dist. 2012-02-28 12:58:57 +01:00
mdate-sh 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org> 2008-03-01 17:27:51 +00:00
osdetect.cfg * docs/osdetect.cfg: Add isolinux config to detected OSes. 2013-12-18 05:34:17 +01:00
texinfo.tex remove all trailing whitespace 2009-06-10 21:04:23 +00:00