summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-04-21 17:33:48 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-04-21 17:33:48 +0100
commit0da6f55a6745686ca056c6bc8ebf647f111cb8e8 (patch)
tree6bc43ad7422d4d65c41d5362296aeaf9e2c9a54b
parent782f3a36469ca396dbf998ea82af2699153be3ed (diff)
downloadlibguestfs-0da6f55a6745686ca056c6bc8ebf647f111cb8e8.tar.gz
libguestfs-0da6f55a6745686ca056c6bc8ebf647f111cb8e8.tar.xz
libguestfs-0da6f55a6745686ca056c6bc8ebf647f111cb8e8.zip
inspect: Look for %systemroot%/system32 for Windows heuristic.
The virt-v2v transfer ISO had a /windows directory. The core inspection code thought this was a Windows root filesystem.
-rw-r--r--src/inspect_fs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspect_fs.c b/src/inspect_fs.c
index d258ec46..ff546340 100644
--- a/src/inspect_fs.c
+++ b/src/inspect_fs.c
@@ -223,9 +223,9 @@ check_filesystem (guestfs_h *g, const char *device,
* would *not* be Windows root disks. (RHBZ#674130)
*/
else if (is_file_nocase (g, "/AUTOEXEC.BAT") > 0 ||
- is_dir_nocase (g, "/WINDOWS") > 0 ||
- is_dir_nocase (g, "/WIN32") > 0 ||
- is_dir_nocase (g, "/WINNT") > 0 ||
+ is_dir_nocase (g, "/WINDOWS/SYSTEM32") > 0 ||
+ is_dir_nocase (g, "/WIN32/SYSTEM32") > 0 ||
+ is_dir_nocase (g, "/WINNT/SYSTEM32") > 0 ||
is_file_nocase (g, "/boot.ini") > 0 ||
is_file_nocase (g, "/ntldr") > 0) {
fs->is_root = 1;