bugGNU GRUB - Bugs: bug #48265, Add automatic support for PARTUUID...


You are not allowed to post comments on this tracker with your current authentication level.

bug #48265: Add automatic support for PARTUUID Linux root command-line options

Submitter:  Nicholas Vinson <username234>
Submitted:  Sat 18 Jun 2016 08:25:10 PM UTC
Category:  Configuration Severity:  Major
Priority:  3 - Low Item Group:  Feature Request
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  2.03+

Thu 17 Jan 2019 04:12:38 AM UTC, comment #3: 

I disagree with this approach.  FS Labels are neither mandatory nor unique.  As such, I do not agree that they are more reliable than the partition UUID.

The patches I provided do not support this method, and I have no interest in submitting a new patch set to add this functionality.

Finally, the functionality I did implement and request be included into GRUB was done on or near April 17, 2018.  As such, I consider this issue resolved.  If the GRUB maintainers agree with me, I kindly request they update the status of this ticket to match.

Thank you.

Nicholas Vinson <username234>
Mon 01 Oct 2018 04:26:15 PM UTC, comment #2: 

In my opinion, we could do the trick only with partuuid support on grub-probe.
Partuuid changes, its bad idea set on stone. Much better work with fs labels.
1) get partition grub spec with grub-search
2) get partuuid with patched grub-probe
Defining this function,

function label2partuuid{
search --no-floppy --label --set=GRUBPART $LABEL
probe --fs-partuuid --set PTUUID $GRUBPART
Changing kernel line,

Great news for ramdiskless systems if done.
Does your patched probe allow this?

Enrique Dominguez <crakem>
Sun 19 Jun 2016 05:50:40 AM UTC, comment #1: 

Please send patch to grub-devel, savannah bug tracker is not really suitable for patch review.

Andrei Borzenkov <arvidjaar>
Group Member
Sat 18 Jun 2016 08:25:10 PM UTC, original submission:  

This is a request to update grub-probe and 10_linux to support the Linux kernel's root=PARTUUID=... parameter.

Currently, grub-mkconfig passes the Linux kernel's device name in the root parameter when booting a Linux system without an initramfs.  However, if the devices get reordered then the system will fail to boot.  Current workarounds for this is to either generate an initramfs that can mount the rootfs via UUID, or to manually generate or update grub.cfg.

This patch updates grub-probe so that it can return the PARTUUID of MBR and GPT volumes and enables 10_linux to pass the PARTUUID via the kernel's root option.  This allows systems to automatically use PARTUUID (root=PARTUUID=...) when an initramfs isn't present.

I have attached the a patch with the requested change and an example grub.cfg.

Nicholas Vinson <username234>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #37525:  grub.cfg added by username234 (9KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by crakem (Posted a comment)
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by username234 (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-11 phcoder Priority5 - Normal 3 - Low
        Planned ReleaseNone 2.03+
    2016-06-18 username234 Attached File- Added 2.02_beta3-part-uuid.patch, #37524
        Attached File- Added grub.cfg, #37525

    Back to the top

    Powered by Savane 3.13-ee12.
    Corresponding source code