[Skiboot] [PATCH] mambo: Allow loading multiple CPIOs

Stewart Smith stewart at linux.vnet.ibm.com
Wed May 31 21:20:51 AEST 2017

Michael Ellerman <mpe at ellerman.id.au> writes:

> Currently we have support for loading a single CPIO and telling Linux to
> use it as the initrd. But the Linux code actually supports having
> multiple CPIOs contiguously in memory, between initrd-start and end, and
> will unpack them all in order. That is a really nice feature as it means
> you can have a base CPIO with your root filesystem, and then tack on
> others as you need for various tests etc.
> So expand the logic to handle SKIBOOT_INITRD, and treat it as a comma
> separated list of CPIOs to load. I chose comma as it's fairly rare in
> filenames, but we could make it space, colon, whatever. Or we could add
> a new environment variable entirely. The code also supports trimming
> whitespace from the values, so you can have "cpio1, cpio2".
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>

I'm okay with a comma, so merged to master as of 1c705700ab3c370e8062516c842469f3f7857f2a

Stewart Smith
OPAL Architect, IBM.

More information about the Skiboot mailing list