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