From: Jan Kiszka <jan.kis...@siemens.com> In case multiple artifacts are found in the deploy directory, use the ones with the highest version.
Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- start-qemu.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/start-qemu.sh b/start-qemu.sh index a9d0e5f..e60add0 100755 --- a/start-qemu.sh +++ b/start-qemu.sh @@ -63,12 +63,13 @@ esac IMAGE_BUILD_DIR="$(dirname $0)/out/" IMAGE_FILE=$(ls ${IMAGE_BUILD_DIR}/build/tmp/deploy/images/demo-image-debian-stretch-qemu${DISTRO_ARCH}.*.img) +KERNEL_FILE=$(ls ${IMAGE_BUILD_DIR}/build/tmp/deploy/images/vmlinuz*_debian-stretch-qemu${DISTRO_ARCH} | tail -1) +INITRD_FILE=$(ls ${IMAGE_BUILD_DIR}/build/tmp/deploy/images/initrd.img*_debian-stretch-qemu${DISTRO_ARCH} | tail -1) + shift 1 ${QEMU_PATH}${QEMU} \ -drive file=${IMAGE_FILE},discard=unmap,if=none,id=disk,format=raw \ -m 1G -smp 4 -serial mon:stdio -netdev user,id=net \ - -kernel ${IMAGE_BUILD_DIR}/build/tmp/deploy/images/vmlinuz*_debian-stretch-qemu$DISTRO_ARCH \ - -append "${KERNEL_CMDLINE}" \ - -initrd ${IMAGE_BUILD_DIR}/build/tmp/deploy/images/initrd.img*_debian-stretch-qemu$DISTRO_ARCH \ - ${QEMU_EXTRA_ARGS} "$@" + -kernel ${KERNEL_FILE} -append "${KERNEL_CMDLINE}" \ + -initrd ${INITRD_FILE} ${QEMU_EXTRA_ARGS} "$@" -- 2.16.4 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.