mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
inspect: recognise Debian live images as such
Check for filesystem.squashfs also in /live, since it is where live-build places it.
This commit is contained in:
committed by
Richard W.M. Jones
parent
04769ad507
commit
75bf5cfebf
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user