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 <pbutsykin@virtuozzo.com>
This commit is contained in:
Pavel Butsykin
2017-04-28 17:04:15 +03:00
committed by Richard W.M. Jones
parent c657c93753
commit f885fd227c

View File

@@ -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);
}
/**