From 75bf5cfebf8833bc951254550c5855c4b0013542 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Thu, 28 Nov 2013 14:48:36 +0100 Subject: [PATCH] inspect: recognise Debian live images as such Check for filesystem.squashfs also in /live, since it is where live-build places it. --- src/inspect-fs-cd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/inspect-fs-cd.c b/src/inspect-fs-cd.c index 407e4f87a..eaeaa6ff0 100644 --- a/src/inspect-fs-cd.c +++ b/src/inspect-fs-cd.c @@ -429,7 +429,8 @@ guestfs___check_installer_root (guestfs_h *g, struct inspect_fs *fs) * Fedora live CDs which contain the same, but larger file). We * need to unpack this and look inside to tell the difference. */ - if (guestfs_is_file (g, "/casper/filesystem.squashfs") > 0) + if (guestfs_is_file (g, "/casper/filesystem.squashfs") > 0 || + guestfs_is_file (g, "/live/filesystem.squashfs") > 0) fs->is_live_disk = 1; /* Debian/Ubuntu. */