grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GRUB PARTUUID PATCH V9 5/5] Default to disabling partition UUID support


From: Nicholas Vinson
Subject: [GRUB PARTUUID PATCH V9 5/5] Default to disabling partition UUID support
Date: Sat, 7 Apr 2018 16:28:14 -0700

The addition of GRUB_DISABLE_LINUX_PARTUUID and having it default to
'false' is a breaking change for systems that use GPT partition schemes
and Linux kernel version 2.6.37 or older and a breaking change for
systems that use MBR partition schemes and Linux kernel version 3.10 or
older.

This patch updates grub.d/10_linux so that GRUB_DISABLE_LINUX_PARTUUID
is set to 'true' if the system has not specified otherwise.

Signed-off-by: Nicholas Vinson <address@hidden>
---
 docs/grub.texi          | 5 +++--
 util/grub.d/10_linux.in | 4 ++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/docs/grub.texi b/docs/grub.texi
index 06f0afe45..3fcc42e74 100644
--- a/docs/grub.texi
+++ b/docs/grub.texi
@@ -1426,13 +1426,14 @@ disable the use of UUIDs, set this option to 
@samp{true}.
 
 @item GRUB_DISABLE_LINUX_PARTUUID
 If @command{grub-mkconfig} cannot identify the root filesystem via its
-universally-unique indentifier (UUID), @command{grub-mkconfig} will use the 
UUID
+universally-unique indentifier (UUID), @command{grub-mkconfig} can use the UUID
 of the partition containing the filesystem to identify the root filesystem to
 the Linux kernel via a @samp{root=PARTUUID=...} kernel parameter.  This is not
 as reliable as using the filesystem UUID, but is more reliable than using the
 Linux device names.  When enabled, this option requires the Linux kernel 
version
 to be greater than 2.6.37 (3.10 for systems using the MSDOS partition scheme) 
or
-newer.  To disable the use of partition UUIDs, set this option to @samp{true}.
+newer.  This option defaults to @samp{true}.  To enable the use of partition
+UUIDs, set this option to @samp{false}.
 
 @item GRUB_DISABLE_RECOVERY
 If this option is set to @samp{true}, disable the generation of recovery
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
index 6916f1841..146499f22 100644
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -43,6 +43,10 @@ case ${GRUB_DEVICE} in
   ;;
 esac
 
+# Default to disabling partition uuid support to maintian compatibility with
+# older kernels.
+GRUB_DISABLE_LINUX_PARTUUID=${GRUB_DISABLE_LINUX_PARTUUID-true}
+
 # btrfs may reside on multiple devices. We cannot pass them as value of root= 
parameter
 # and mounting btrfs requires user space scanning, so force UUID in this case.
 if ( [ "x${GRUB_DEVICE_UUID}" = "x" ] && [ "x${GRUB_DEVICE_PARTUUID}" = "x" ) \
-- 
2.16.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]