bugGNU GRUB - Bugs: bug #22705, [grub2] Add --cfg option to...

 
 

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

bug #22705: [grub2] Add --cfg option to grub-mkrescue

Submitter:  Julio Merino <jmmv>
Submitted:  Sun 23 Mar 2008 07:18:44 PM UTC
   
 
Category:  Installation Severity:  Major
Priority:  5 - Normal Item Group:  Feature Request
Status:  Wont Fix Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  1.96 (CVS) Reproducibility:  None
Planned Release:  None

Fri 16 Oct 2009 09:19:08 AM UTC, comment #2: 

As discussed on the list --overlay is considered the correct way and we should avoid options existing for their own sake.

Vladimir Serbinenko <phcoder>
Group administrator
Wed 09 Sep 2009 12:33:39 AM UTC, comment #1: 

I'm not sure how grub-mkrescue worked when you filed this, but nowadays I think this should append to the configuration file rather than overwriting it. As it is in your patch, there isn't all that much benefit of --cfg over --overlay beyond avoiding a little bit of directory setup; but an option that appends to the configuration file would save having to duplicate the 'insmod' commands that grub-mkrescue already inserts into the configuration file.

Colin Watson <cjwatson>
Group Member
Sun 23 Mar 2008 07:18:44 PM UTC, original submission:  

I have started playing with GRUB 2 and found the grub-mkrescue utility very useful.  Basically I want to generate a boot floppy disk that I can later use in a virtual machine, without touching its virtual hard disk contents.  I also want this image to show me a menu with a couple of options, so that I do not have to enter commands continuously.

However, the grub-mkrescue utility lacks the ability to install a custom configuration file into the image.  I think that adding a --cfg option to it would be useful.  This option would specify the name of a file to use as grub.cfg, and the tool would later install it into the generated image.

The attached patch does this.

Julio Merino <jmmv>

 

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

Attached Files
file #15317:  cfg.diff added by jmmv (2KiB - Proposed improvement.)

 

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 cjwatson (Posted a comment)
  • -email is unavailable- added by jmmv (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
    2009-10-16 phcoder StatusNone Wont Fix
        Open/ClosedOpen Closed
    2009-09-09 cjwatson ReleaseNone Bazaar - trunk
    2008-03-23 jmmv Attached File- Added cfg.diff, #15317

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code