Open jmranger opened 2 years ago
Try gunzipping both initrds, concatenating them, and gzipping them up again.
Explanation: m1n1 gunzips the initrds in order to calculate their length, but doesn't attempt to concatenate the result, so the second one will probably override the first one.
Tested. That works. Thanks. Feel free to close. As mentioned, I reported mostly because I was expecting (possibly incorrectly) that both loaders would support similar use-cases.
This is still a nit that's worth fixing; it should be possible to tweak the payload code to append initrds instead of replacing them, at least if they're consecutive in the payload order.
Tested with m1n1 88874936c66a Reporting since this works fine when booting with linux.py. Issue is only in run_guest.py.
Use case: when installing a rootfs with the initrd flavor of Debian's installer [0], it's useful to be able to provide a second initrd containing the Broadcom firmwares.
Commands used:
With
DebianBookwormInstaller.20220125.initrd.gz
asinitrd
, boot is successful. Whenmerged.cpio.gz
, linux fails to boot with the following error:Logs attached.
I would totally understand if you'd choose to close this as wontfix.
[0] https://d-i.debian.org/daily-images/arm64/20220125-02:20/netboot/debian-installer/arm64/initrd.gz
bad.txt good.txt