grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [GRUB PARTUUID PATCH 0/2] GRUB: Add PARTUUID Detection Support
@ 2016-06-20  1:37 Nicholas Vinson
  2016-06-20  1:37 ` [GRUB PARTUUID PATCH 1/2] Add PARTUUID detection support to grub-probe Nicholas Vinson
  2016-06-20  1:37 ` [GRUB PARTUUID PATCH 2/2] Update grub script template files Nicholas Vinson
  0 siblings, 2 replies; 8+ messages in thread
From: Nicholas Vinson @ 2016-06-20  1:37 UTC (permalink / raw)
  To: grub-devel; +Cc: Nicholas Vinson

Hello,

This is a request to add PARTUUID detection support grub-probe for MBR
and GPT partition schemes.  The Linux kernel supports mounting the root
filesystem by Linux device name or by the Partition [GU]UID.  GRUB's
mkconfig, however, currently only supports specifying the rootfs in the
kernel command-line by Linux device name unless an initramfs is also
present.  When an initramfs is present GRUB's mkconfig will set the
kernel's root parameter value to either the Linux device name or to the
filesystem [GU]UID.

Therefore, the only way to protect a Linux system from failing to boot
when its Linux storage device names change is to either manually edit
grub.cfg or /etc/default/grub and append root=PARTUUID=xxx to the
command-line or create an initramfs that understands how to mount
devices by filesystem [G]UID and let grub-mkconfig pass the filesystem
[GU]UID to the initramfs.

The goal of this patch set is to enable root=PARTUUID=xxx support in
grub-mkconfig, so that users don't have to manually edit
/etc/default/grub or grub.cfg, or create an initramfs for the sole
purpose of having a robust bootloader configuration for Linux.

Thanks,
Nicholas Vinson

Nicholas Vinson (2):
  Add PARTUUID detection support to grub-probe
  Update grub script template files

 grub-core/partmap/gpt.c   |  2 ++
 grub-core/partmap/msdos.c | 12 ++++++++--
 include/grub/partition.h  |  9 +++++++-
 util/grub-mkconfig.in     |  2 ++
 util/grub-probe.c         | 58 +++++++++++++++++++++++++++++++++++++++++++++++
 util/grub.d/10_linux.in   | 11 +++++++--
 6 files changed, 89 insertions(+), 5 deletions(-)

-- 
2.9.0



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-07-27 14:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-20  1:37 [GRUB PARTUUID PATCH 0/2] GRUB: Add PARTUUID Detection Support Nicholas Vinson
2016-06-20  1:37 ` [GRUB PARTUUID PATCH 1/2] Add PARTUUID detection support to grub-probe Nicholas Vinson
2016-07-27  4:43   ` Andrei Borzenkov
2016-06-20  1:37 ` [GRUB PARTUUID PATCH 2/2] Update grub script template files Nicholas Vinson
2016-07-19 14:07   ` Nicholas Vinson
2016-07-19 14:16     ` Nick Vinson
2016-07-27  5:01   ` Andrei Borzenkov
2016-07-27 14:36     ` Nick Vinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).