From bd495e424ce65b3d560f78ae16d23446a9bb7ea2 2018-10-27 12:30:02 From: drtyhlpr Date: 2018-10-27 12:30:02 Subject: [PATCH] Added: QEMU initramfs output --- diff --git a/rpi23-gen-image.sh b/rpi23-gen-image.sh index fba253a..1abf01f 100755 --- a/rpi23-gen-image.sh +++ b/rpi23-gen-image.sh @@ -617,6 +617,11 @@ if [ "$ENABLE_QEMU" = true ] ; then fi done fi + + # Copy initramfs to QEMU directory + if [ -f "${BOOT_DIR}/initramfs-${KERNEL_VERSION}" ] ; then + install_readonly "${BOOT_DIR}/initramfs-${KERNEL_VERSION}" "${BASEDIR}/qemu/initramfs-${KERNEL_VERSION}" + fi fi # Calculate size of the chroot directory in KB