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

View: New views
3 Messages — Rating Filter:   Alert me  

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

by Mario Castelán Castro :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


URL:
  <http://savannah.gnu.org/bugs/?22705>

                 Summary: [grub2] Add --cfg option to grub-mkrescue
                 Project: GNU GRUB
            Submitted by: jmmv
            Submitted on: Sunday 03/23/2008 at 20:18
                Category: Installation
                Severity: Major
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name:
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.96 (CVS)
         Reproducibility: None
         Planned Release:

    _______________________________________________________

Details:

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.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sunday 03/23/2008 at 20:18  Name: cfg.diff  Size: 2kB   By: jmmv
Proposed improvement.
<http://savannah.gnu.org/bugs/download.php?file_id=15317>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?22705>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-grub mailing list
Bug-grub@...
http://lists.gnu.org/mailman/listinfo/bug-grub

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

by Mario Castelán Castro :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Update of bug #22705 (project grub):

                 Release:                    None => SVN                    

    _______________________________________________________

Follow-up 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.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?22705>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-grub mailing list
Bug-grub@...
http://lists.gnu.org/mailman/listinfo/bug-grub

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

by Mario Castelán Castro :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Update of bug #22705 (project grub):

                  Status:                    None => Wont Fix              
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #2:

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

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?22705>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-grub mailing list
Bug-grub@...
http://lists.gnu.org/mailman/listinfo/bug-grub