mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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:
committed by
Richard W.M. Jones
parent
c657c93753
commit
f885fd227c
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user