[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
- [GRUB PARTUUID PATCH V9 0/5] Add PARTUUID detection support, Nicholas Vinson, 2018/04/07
- [GRUB PARTUUID PATCH V9 1/5] Centralize guid prints, Nicholas Vinson, 2018/04/07
- [GRUB PARTUUID PATCH V9 2/5] Update grub_gpt_partentry, Nicholas Vinson, 2018/04/07
- [GRUB PARTUUID PATCH V9 3/5] Add PARTUUID detection support to grub-probe, Nicholas Vinson, 2018/04/07
- [GRUB PARTUUID PATCH V9 5/5] Default to disabling partition UUID support,
Nicholas Vinson <=
- [GRUB PARTUUID PATCH V9 4/5] Update grub script template files, Nicholas Vinson, 2018/04/07
- Re: [GRUB PARTUUID PATCH V9 4/5] Update grub script template files, Daniel Kiper, 2018/04/10
- Re: [GRUB PARTUUID PATCH V9 4/5] Update grub script template files, Nick Vinson, 2018/04/10
- Re: [GRUB PARTUUID PATCH V9 4/5] Update grub script template files, Daniel Kiper, 2018/04/11
- Re: [GRUB PARTUUID PATCH V9 4/5] Update grub script template files, Nick Vinson, 2018/04/11
- Re: [GRUB PARTUUID PATCH V9 4/5] Update grub script template files, Daniel Kiper, 2018/04/16
- Re: [GRUB PARTUUID PATCH V9 4/5] Update grub script template files, Nick Vinson, 2018/04/17
Re: [GRUB PARTUUID PATCH V9 0/5] Add PARTUUID detection support, Daniel Kiper, 2018/04/10