[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH 1/3] 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 407e4f8..eaeaa6f 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. */
-- 
1.8.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]