bugGNU GRUB - Bugs: bug #34807, Permit the configuration of...

 
 

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

bug #34807: Permit the configuration of GRUB_PREFIX by the user in grub-mkconfig and grub-install

Submitted by:  Daniel Dehennin <nebuchadnezzar>
Submitted on:  Sat 12 Nov 2011 12:14:15 AM UTC
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Feature Request
Status:  Invalid Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release: 
Release:  * Bazaar - trunk Reproducibility:  Every Time
Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Sat 12 Nov 2011 08:53:53 PM UTC, comment #1: 

I see no justification for grub-install changes. Just shuffling variables around doesn't achieve anything. Moreover grub-install isn't intended to be configured by etc/default/grub other than enabling cryptodisk. Also this is a wrong place for submitting patches (use grub-devel).

Vladimir Serbinenko <phcoder>
Project Administrator
Sat 12 Nov 2011 12:14:15 AM UTC, original submission:  

The purpose of this patch is to allow storing multiple
system grub installations on one device and let the automatic
configuration updating tools works.

My use case is the following:

I use usb keys to boot several full luks encrypted systems,
one key per system for now and I want to store all the grub
installations on one device only.

I first try to install into several partitions but on #grub
channel Jordan_U tell me about using the configfile, here is a
working example of my new setup:

- ${usb_key}/grub: master grub with hand written configuration
  to load system specific configurations with "configfile"
  directives.  This configuration is managed on one particular
  system which does the grub-setup calls on upgrade.  I added
  a script '/etc/grub.d/15_my_systems'
  #+begin_src conf
    # [...]
    menuentry 'Svartalfheim' {
            insmod gzio
            insmod part_msdos
            insmod btrfs
            set root='(/dev/sdb,msdos1)'
            search --no-floppy --fs-uuid --set=root 3102b6ea-ee28-44d4-82ba-21ec98631f1e
            echo    'Loading svartalfheim configuration... '
            configfile /svartalfheim/grub/grub.cfg
    }
    menuentry 'Nidhogg' {
            insmod gzio
            insmod part_msdos
            insmod btrfs
            set root='(/dev/sdb,msdos1)'
            search --no-floppy --fs-uuid --set=root 3102b6ea-ee28-44d4-82ba-21ec98631f1e
            echo    'Loading nidhogg configuration... '
            configfile /nidhogg/grub/grub.cfg
    }
    # [...]
  #+end_src

- ${usb_key}/$(hostname -s)/grub: grub installation for each
  host generated by update-grub on each system.  I use
  'GRUB_SETUP=/bin/true' in '/etc/default/grub' to let only
  one host doing the MBR upgrades.

Here is the changelog:

  • util/grub-mkconfig.in: Load "${sysconfdir}/default/grub"

  after providing default value of "${GRUB_PREFIX}".

  • util/grub-install.in (GRUB_PREFIX): New name of

  "${grubdir}", this permit user configuration with
  "${sysconfdir}/default/grub".
  (grub_setup): Permit to overwrite this variable with
  ${GRUB_SETUP} from user default variable file.

Regards.

Daniel Dehennin <nebuchadnezzar>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #24357:  0001-Make-GRUB_PREFIX-variable-user-configurable.patch added by nebuchadnezzar (12KiB - text/x-patch - patch to grub-mkconfig.in and grub-install.in)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by nebuchadnezzar (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.

    Only logged-in users can vote.

     

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-11-12 phcoder StatusNone => Invalid
        Open/ClosedOpen => Closed
    2011-11-12 nebuchadnezzar Attached File- => Added 0001-Make-GRUB_PREFIX-variable-user-configurable.patch, #24357

    Back to the top


    Powered by Savane 3.9