From 8da89925daf4b1eb59deddd0945c994585c9c768 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 12 Apr 2012 10:15:35 +0100 Subject: inspection: Remove spurious warning for Ubuntu 10.04 with encrypted swap (RHBZ#811872). (cherry picked from commit 96b6504b09461aeb6850bb2e7b870a0a4c2f5edf) --- src/inspect_fs_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inspect_fs_unix.c') diff --git a/src/inspect_fs_unix.c b/src/inspect_fs_unix.c index 18072ee3..d4641d5d 100644 --- a/src/inspect_fs_unix.c +++ b/src/inspect_fs_unix.c @@ -1162,7 +1162,7 @@ resolve_fstab_device (guestfs_h *g, const char *spec, Hash_table *md_map) char *device = NULL; char *type, *slice, *disk, *part; - if (STRPREFIX (spec, "/dev/mapper/")) { + if (STRPREFIX (spec, "/dev/mapper/") && guestfs_exists (g, spec) > 0) { /* LVM2 does some strange munging on /dev/mapper paths for VGs and * LVs which contain '-' character: * -- cgit