From c332eae7819948a3b94062647a9539dd1a9f5087 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 12 Feb 2015 09:14:22 +0100 Subject: [PATCH] mkrootfs: die if $QEMU_BIN is not in PATH. --- mkrootfs.sh.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkrootfs.sh.in b/mkrootfs.sh.in index 2300283..d082ba2 100644 --- a/mkrootfs.sh.in +++ b/mkrootfs.sh.in @@ -155,6 +155,9 @@ for f in chroot tar xbps-install xbps-reconfigure xbps-query; do die "$f binary is missing in your system, exiting." fi done +if ! $QEMU_BIN -version >/dev/null 2>&1; then + die "$QEMU_BIN binary is missing in your system, exiting." +fi if type pixz >/dev/null 2>&1; then XZ=pixz else