[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GRUB PARTUUID PATCH V2 0/2] Add PARTUUID detection support
From: |
Nicholas Vinson |
Subject: |
[GRUB PARTUUID PATCH V2 0/2] Add PARTUUID detection support |
Date: |
Sat, 6 Aug 2016 18:56:30 -0700 |
Changes from Patch v1:
- Added GRUB_ENABLE_LINUX_PARTUUID variable description to grub.texi
- Removed added gpt_part_guid copy logic from
grub_gpt_partition_map_iterate()
- Removed added NT disk signature copy logic from
grub_partition_msdos_iterate()
- Removed modifications to partition number increment logic
- Removed added guid union definition.
- Added GRUB_ENABLE_LINUX_PARTUUID to grub-mkconfig.in export list
- Moved PRINT_GPT_PARTTYPE printing logic to print_gpt_guid()
function in grub-probe.c
- Updated PRINT_GPT_PARTTYPE case to call print_gpt_guid() function
in grub-probe.c.
- Created probe_partuuid() function in grub-probe.c
- Updated print == PRINT_PARTUUID check logic in probe() to call
probe_partuuid().
- Updated UUID logic in 10_linux.in to enable root=PARTUUID feature
only if GRUB_DISABLE_LINUX_UUID is not set to true,
and GRUB_DEVICE_PARTUUID is not empty, GRUB_ENABLE_LINUX_PARTUUID
is set to true.
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
docs/grub.texi | 13 ++++++++
util/grub-mkconfig.in | 3 ++
util/grub-probe.c | 83 ++++++++++++++++++++++++++++++++++++++++---------
util/grub.d/10_linux.in | 13 ++++++--
4 files changed, 95 insertions(+), 17 deletions(-)
--
2.9.2
- [GRUB PARTUUID PATCH V2 0/2] Add PARTUUID detection support,
Nicholas Vinson <=