Blame SOURCES/0001-RHEL-7-Remove-libguestfs-live-RHBZ-798980.patch
|
|
e9bfca |
From 54fdf8cea3fce1171e30a2c30ebbadbd9df5adaf Mon Sep 17 00:00:00 2001
|
|
|
151578 |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
151578 |
Date: Fri, 21 Dec 2012 15:50:11 +0000
|
|
|
151578 |
Subject: [PATCH] RHEL 7: Remove libguestfs live (RHBZ#798980).
|
|
|
151578 |
|
|
|
151578 |
This isn't supported in RHEL 7.
|
|
|
151578 |
---
|
|
|
151578 |
lib/launch-unix.c | 7 +++++++
|
|
|
151578 |
1 file changed, 7 insertions(+)
|
|
|
151578 |
|
|
|
151578 |
diff --git a/lib/launch-unix.c b/lib/launch-unix.c
|
|
|
e9bfca |
index 9af481fd9..974336ccd 100644
|
|
|
151578 |
--- a/lib/launch-unix.c
|
|
|
151578 |
+++ b/lib/launch-unix.c
|
|
|
151578 |
@@ -37,6 +37,12 @@
|
|
|
151578 |
static int
|
|
|
151578 |
launch_unix (guestfs_h *g, void *datav, const char *sockpath)
|
|
|
151578 |
{
|
|
|
151578 |
+ error (g,
|
|
|
151578 |
+ "launch: In RHEL, only the 'libvirt' or 'direct' method is supported.\n"
|
|
|
151578 |
+ "In particular, \"libguestfs live\" is not supported.");
|
|
|
151578 |
+ return -1;
|
|
|
151578 |
+
|
|
|
151578 |
+#if 0
|
|
|
151578 |
int r, daemon_sock = -1;
|
|
|
151578 |
struct sockaddr_un addr;
|
|
|
151578 |
uint32_t size;
|
|
|
151578 |
@@ -106,6 +112,7 @@ launch_unix (guestfs_h *g, void *datav, const char *sockpath)
|
|
|
151578 |
g->conn = NULL;
|
|
|
151578 |
}
|
|
|
151578 |
return -1;
|
|
|
151578 |
+#endif
|
|
|
151578 |
}
|
|
|
151578 |
|
|
|
151578 |
static int
|
|
|
151578 |
--
|
|
|
e9bfca |
2.17.1
|
|
|
151578 |
|