From 19e979ec1896146465bdde1ea7c039d0c96e2026 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 16 Mar 2016 13:29:11 +0000 Subject: [PATCH] Fix use of SUPERMIN and QEMU environment variables, and document. --- README | 4 ++++ configure.ac | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README b/README index 1b2632d..42c6ced 100644 --- a/README +++ b/README @@ -53,6 +53,10 @@ To build the disk image, do: ./configure make +If supermin and qemu are not in the normal location on the path, you +can set SUPERMIN and QEMU environment variables before running +./configure. + Assuming that works you will end up with 4 files: - 'supernested--.qcow2' diff --git a/configure.ac b/configure.ac index 6a53b32..e03505c 100644 --- a/configure.ac +++ b/configure.ac @@ -49,13 +49,13 @@ fi dnl Get the distro that supermin thinks it is using. AC_MSG_CHECKING([for the distro]) DISTRO="$( - supermin --list-drivers | + $SUPERMIN --list-drivers | $AWK '$2 == "detected" { gsub ("/", "-", $1); print $1; exit }' )" AC_MSG_RESULT([$DISTRO]) AC_SUBST([DISTRO]) if test -z "$DISTRO"; then - AC_MSG_ERROR([cannot get supermin distro from 'supermin --list-drivers' output]) + AC_MSG_ERROR([cannot get supermin distro from '$SUPERMIN --list-drivers' output]) fi dnl Check for a usable qemu KVM binary. -- 1.8.3.1