Bug 179127

Summary: [PATCH] allow for multiple initramfs images with grub
Product: [Fedora] Fedora Reporter: Jeff Layton <jlayton>
Component: grubAssignee: Peter Jones <pjones>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: lkundrak, steved
Target Milestone: ---Keywords: FutureFeature, Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: grub-0_97-37_fc11 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-11 13:16:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
this patch adds 3 new functions to char_io.c
none
patch to allow passing multiple image files to the initrd grub command none

Description Jeff Layton 2006-01-27 16:11:38 UTC
The 2.6 kernel series allows you to pass it multiple initramfs images at boot
time. Basically the idea is that they should be concatenated in memory.

This patch adds a few new functions to char_io.c (strspn, strcspn, and
strtok_r), and changes the load_initrd function so that the initrd command can
take multiple images. They will each be loaded into RAM in the order specified.

Comment 1 Jeff Layton 2006-01-27 16:13:40 UTC
Created attachment 123781 [details]
this patch adds 3 new functions to char_io.c

This adds strspn, strcspn, and strtok_r to char_io.c. This is to support the
parsing of multiple options on the initrd commandline.

These were "borrowed" from dietlibc with some small changes.

Comment 2 Jeff Layton 2006-01-27 16:16:02 UTC
Created attachment 123782 [details]
patch to allow passing multiple image files to the initrd grub command

This patch allows you to pass multiple image files to the kernel by adding more
than one filename to the initrd parameter. i.e.:

initrd /initramfs-image1.gz /initramfs-image2.gz

Comment 3 John Poelstra 2008-07-09 04:58:32 UTC
patches present

Comment 4 Lubomir Rintel 2009-01-11 13:16:58 UTC
Fixed in grub-0_97-37_fc11