From f885fd227cf629a53e90cf61c7a2ccfd7a09ab43 Mon Sep 17 00:00:00 2001 From: Pavel Butsykin Date: Fri, 28 Apr 2017 17:04:15 +0300 Subject: [PATCH] appliance: more reliable check for the supermin appliance At least two control files (packages and base.tar.gz) are necessary for the supermin appliance. Signed-off-by: Pavel Butsykin --- lib/appliance.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/appliance.c b/lib/appliance.c index f12918573..5738e4e7f 100644 --- a/lib/appliance.c +++ b/lib/appliance.c @@ -199,7 +199,9 @@ contains_fixed_appliance (guestfs_h *g, const char *path, void *data) static int contains_supermin_appliance (guestfs_h *g, const char *path, void *data) { - return dir_contains_files (g, path, "supermin.d", NULL); + return dir_contains_files (g, path, + "supermin.d/base.tar.gz", + "supermin.d/packages", NULL); } /**