bugGNU GRUB - Bugs: bug #35238, Support for multiple initrd images...

 
 

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

bug #35238: Support for multiple initrd images like grub-legacy has

Submitter:  Rodney Beede <rbeede>
Submitted:  Wed 04 Jan 2012 04:22:13 PM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  None

Tue 14 Feb 2012 07:06:33 AM UTC, comment #3: 

Current implementation fails when mixing .gz and .cpio initrd images. Test case:
  initrd img1.cpio.gz img2.cpio
leads to wrong result.

.cpio header must be aligned on 4-byte boundary, while .gz size is not required to be multiple of 4.

Please add padding by zeroes to align initrd size on 4-byte boundary. See format specification here:
http://www.kernel.org/doc/Documentation/early-userspace/buffer-format.txt

Nail Kaipov <nky>
Fri 20 Jan 2012 11:51:09 AM UTC, comment #2: 

Fixed in bzr

Vladimir Serbinenko <phcoder>
Group administrator
Wed 04 Jan 2012 04:26:39 PM UTC, comment #1: 

The syntax may also look like:

initrd (loop)/ntpasswd/initrd.cgz (loop)/ntpasswd/scsi.cgz

Rodney Beede <rbeede>
Wed 04 Jan 2012 04:22:13 PM UTC, original submission:  

Some Linux distros (example: ntpasswd) utilize multiple initrd cgz images when booting.  grub-legacy added support for this feature so booting was possible with:

initrd /ntpasswd/initrd.cgz
initrd /ntpasswd/scsi.cgz

Grub would write in the contents of initrd.cgz into memory and then add on the contents of scsi.cgz (overwritting any paths with the same name with the second cgz).

This allowed the distro to boot and load additional files,drivers,etc.

grub2 doesn't seem to support these options.


A work around is to extract the contents of the cgz and combine them into a single one.  However when booting various isos from a usb key it is nice to not have to manually create this single image.

Rodney Beede <rbeede>

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2012-01-20 phcoder StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code