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

Submitted by:  Rodney Beede <rbeede>
Submitted on:  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: 
Release:  other 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:

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

Fixed in bzr

Vladimir Serbinenko <phcoder>
Project 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>


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)

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

    Only logged-in users can vote.




    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.3