tools/run_guest_kernel.sh: Fix initramfs support

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2022-07-30 15:59:21 +09:00
parent 4f0be4aa2c
commit f09c10b5fa

View file

@ -23,6 +23,9 @@ if [ ! -z "$args" ]; then
fi fi
cat "$kernel_base"/arch/arm64/boot/dts/apple/*.dtb "$kernel_base"/arch/arm64/boot/Image.gz >>/tmp/m1n1-linux.bin cat "$kernel_base"/arch/arm64/boot/dts/apple/*.dtb "$kernel_base"/arch/arm64/boot/Image.gz >>/tmp/m1n1-linux.bin
if [ ! -z "$initramfs" ]; then
cat "$initramfs" >>/tmp/m1n1-linux.bin
fi
echo "Chainloading to updated m1n1..." echo "Chainloading to updated m1n1..."
python chainload.py -r ../../build/m1n1.bin python chainload.py -r ../../build/m1n1.bin
echo "Starting guest..." echo "Starting guest..."