[elbe-devel] [PATCH 2/2] examples: arm64-qemu: Add initrd

Kurt Kanzenbach kurt at linutronix.de
Thu Oct 7 15:42:29 CEST 2021


The example image doesn't boot without the resulting initrd.img. Add it.

Signed-off-by: Kurt Kanzenbach <kurt at linutronix.de>
---
 examples/arm64-qemu-virt.xml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/examples/arm64-qemu-virt.xml b/examples/arm64-qemu-virt.xml
index 4bd3af8d6a38..915f18900b88 100644
--- a/examples/arm64-qemu-virt.xml
+++ b/examples/arm64-qemu-virt.xml
@@ -11,6 +11,7 @@
 					-smp 1 -m 1024 \
 					-net nic -net user,hostfwd=tcp::2222-:22
 					-kernel vmlinuz \
+					-initrd initrd.img \
 					-append "console=ttyAMA0 root=/dev/vda2" \
 					sdcard.qcow2
 
@@ -80,6 +81,7 @@
 			<losetup img="sdcard.img">
 				<!-- globs work, but must make sure, that only a single file is matched -->
 				<copy_from_partition part="1" artifact="vmlinuz">/vmlinuz-4.19.0-*-arm64</copy_from_partition>
+				<copy_from_partition part="1" artifact="initrd.img">/initrd.img-4.19.0-*-arm64</copy_from_partition>
 			</losetup>
 			<img_convert fmt="qcow2" dst="sdcard.qcow2">sdcard.img</img_convert>
 			<set_packer packer="tarxz">sdcard.qcow2</set_packer>
-- 
2.30.2



More information about the elbe-devel mailing list