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: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Feature Request
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: Every Time
Planned Release: None

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>

 

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
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by nebuchadnezzar (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 12 Nov 2011 08:53:53 PM UTCphcoderStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Sat 12 Nov 2011 12:14:15 AM UTCnebuchadnezzarAttached File-=>Added 0001-Make-GRUB_PREFIX-variable-user-configurable.patch, #24357

    Back to the top


    Powered by Savane 3.1-cleanup1