Blame SOURCES/0096-RHEL-7-Remove-libguestfs-live-RHBZ-798980.patch

ffd6ed
From db9af482e1afb7b776de08084c3e6c491ca6937f Mon Sep 17 00:00:00 2001
022f11
From: "Richard W.M. Jones" <rjones@redhat.com>
022f11
Date: Fri, 21 Dec 2012 15:50:11 +0000
022f11
Subject: [PATCH] RHEL 7: Remove libguestfs live (RHBZ#798980).
022f11
022f11
This isn't supported in RHEL 7.
022f11
---
022f11
 src/launch-unix.c | 7 +++++++
022f11
 1 file changed, 7 insertions(+)
022f11
022f11
diff --git a/src/launch-unix.c b/src/launch-unix.c
0d20ef
index 489a046..7956bed 100644
022f11
--- a/src/launch-unix.c
022f11
+++ b/src/launch-unix.c
0d20ef
@@ -37,6 +37,12 @@
022f11
 static int
0d20ef
 launch_unix (guestfs_h *g, void *datav, const char *sockpath)
022f11
 {
022f11
+  error (g,
0d20ef
+	 "launch: In RHEL, only the 'libvirt' or 'direct' method is supported.\n"
022f11
+	 "In particular, \"libguestfs live\" is not supported.");
022f11
+  return -1;
022f11
+
022f11
+#if 0
022f11
   int r, daemon_sock = -1;
022f11
   struct sockaddr_un addr;
022f11
   uint32_t size;
0d20ef
@@ -102,6 +108,7 @@ launch_unix (guestfs_h *g, void *datav, const char *sockpath)
022f11
     g->conn = NULL;
022f11
   }
022f11
   return -1;
022f11
+#endif
022f11
 }
022f11
 
022f11
 static int
022f11
-- 
022f11
1.8.3.1
022f11