bugGNU GRUB - Bugs: bug #31647, Option to use labels instead of...

 
 

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

bug #31647: Option to use labels instead of uuid's in Linux grub.cfg

Submitted by:  Barry Jackson <barjac>
Submitted on:  Sat 13 Nov 2010 09:12:58 PM UTC  
Votes:  131  
 
Category:  Disk & Partition Severity:  Major
Priority:  3 - Low Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Barry Jackson
Open/Closed:  Open Release: 
Release:  Bazaar - trunk Reproducibility:  None
Planned Release:  2.03+

( Jump to the original submission)

Wed 03 Sep 2014 09:55:57 AM UTC, comment #7:

Hi,

I too would like to have a supported way to generate a grub.cfg with LABEL= instead of UUID=

I am using 2.02~beta2 and this does not seems to be possible yet.

My use case is: prepare a baseline bootable system on a USB drive, make an image of it with dd, write that image with dd to several other USB disks.

The attached patches seem to be a good starting point as they do not change the default behavior, unlike #38366.

If the grub developers at least acknowledge the usefulness of the feature, then some of us may be willing to spend some more time on working out the details of the implementation.

Thanks,
Antonio

Antonio Ospite <ao2>
Sun 30 Jun 2013 05:44:13 AM UTC, comment #6:

Another attempt to fix this bug: https://savannah.gnu.org/bugs/?38366

 <kernc>
Thu 24 May 2012 01:07:24 AM UTC, comment #5:

There's a use case for this that makes me want it too: backup.

If I periodically clone my HDD to an external one, I'd like to be able to swap them when the internal one fails, like described here: <http://www.jwz.org/blog/2007/09/psa-backups/>. However, with UUIDs in the bootloader I can't do this. With labels I would be able to.

Ian Dalton <iaindalton>
Thu 29 Sep 2011 08:58:51 AM UTC, comment #4:

It changes from UUIDs to LABELs in several, unrelated modules which should be configurable separately.

Vladimir Serbinenko <phcoder>
Project Administrator
Tue 16 Aug 2011 05:09:10 PM UTC, comment #3:

I'm not sure I follow.
Without GRUB_USE_LABEL set "true" it changes nothing.

Are you saying it breaks something un-related ?
If so then could you please explain as I would like to try to correct it.

Otherwise, could you please add a similar feature to grub2 ?

I have used this for about 12 months now with no issues and prefer labels for many reasons.

Barry Jackson <barjac>
Tue 16 Aug 2011 03:22:25 PM UTC, comment #2:

This patch isn't appropriate since it changes behaviour of several unrelated parts with a single option.

Vladimir Serbinenko <phcoder>
Project Administrator
Wed 15 Jun 2011 11:15:28 AM UTC, comment #1:

I have attached an updated patch for 1.99 release version, in the hope that this may at least be reviewed.

Barry Jackson <barjac>
Sat 13 Nov 2010 09:12:58 PM UTC, original submission:

It would be good in Linux to be able to specify that grub use labels rather than UUID's in grub.cfg, if the user specifies GRUB_USE_LABEL=true in /etc/default/grub.

I have attached patches for grub-mkconfig.in, grub-mkconfig_lib.in and 10_linux.in that achieve this in my system. (rev 2937).

Whilst my patches may have deficiencies and possibly overlook many scenarios that I do not understand, I feel that the principle illustrated is one that is desirable and should be fully developed.

Thanks for your time.

Regards,
Barry Jackson (barjac)

Barry Jackson <barjac>

 

Attached Files
file #23526:  grub2_labels.patch added by barjac (2KiB - application/octet-stream - Patch updated for 1.99 release version - works for me.)
file #22009:  grub-mkconfig.in.patch added by barjac (801B - application/octet-stream - Patches)
file #22010:  10_linux.in.patch added by barjac (521B - application/octet-stream - Patches)
file #22011:  grub-mkconfig_lib.patch added by barjac (771B - application/octet-stream - Patches)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ao2 (Posted a comment)
  • -email is unavailable- added by jpt (Voted in favor of this item)
  • -email is unavailable- added by mrmazda (Voted in favor of this item)
  • -email is unavailable- added by kernc (Posted a comment)
  • -email is unavailable- added by kernc (Voted in favor of this item)
  • -email is unavailable- added by iaindalton (Posted a comment)
  • -email is unavailable- added by iaindalton (Voted in favor of this item)
  • -email is unavailable- added by rduke15 (Voted in favor of this item)
  • -email is unavailable- added by rduke15
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by barjac (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 131 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-03-02 phcoder Planned ReleaseNone => 2.03+
    2013-07-01 jpt Carbon-Copy- => Added jpt
    2013-06-30 mrmazda Carbon-Copy- => Added mrmazda
    2013-06-30 kernc Carbon-Copy- => Added kernc
    2012-05-24 iaindalton Carbon-Copy- => Added iaindalton
    2011-06-15 barjac Attached File- => Added grub2_labels.patch, #23526
    2011-05-01 rduke15 Carbon-Copy- => Added rduke15
    2011-05-01 rduke15 Carbon-Copy- => Added -email is unavailable-
    2010-11-13 phcoder Priority5 - Normal => 3 - Low
    2010-11-13 barjac Attached File- => Added grub-mkconfig.in.patch, #22009
        Attached File- => Added 10_linux.in.patch, #22010
        Attached File- => Added grub-mkconfig_lib.patch, #22011

    Back to the top


    Powered by Savane 3.3