mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0093-RHEL-7-Remove-User-Mode-Linux-RHBZ-1144197.patch

0d20ef
From 30c0036372d20d065579ce2a1148fd526320fc89 Mon Sep 17 00:00:00 2001
0d20ef
From: "Richard W.M. Jones" <rjones@redhat.com>
0d20ef
Date: Fri, 19 Sep 2014 13:38:20 +0100
0d20ef
Subject: [PATCH] RHEL 7: Remove User-Mode Linux (RHBZ#1144197).
0d20ef
0d20ef
This isn't supported in RHEL 7.
0d20ef
---
0d20ef
 src/launch-uml.c | 7 +++++++
0d20ef
 1 file changed, 7 insertions(+)
0d20ef
0d20ef
diff --git a/src/launch-uml.c b/src/launch-uml.c
0d20ef
index 21525e3..b631389 100644
0d20ef
--- a/src/launch-uml.c
0d20ef
+++ b/src/launch-uml.c
0d20ef
@@ -136,6 +136,12 @@ uml_supported (guestfs_h *g)
0d20ef
 static int
0d20ef
 launch_uml (guestfs_h *g, void *datav, const char *arg)
0d20ef
 {
0d20ef
+  error (g,
0d20ef
+	 "launch: In RHEL, only the 'libvirt' or 'direct' method is supported.\n"
0d20ef
+	 "In particular, User-Mode Linux (UML) is not supported.");
0d20ef
+  return -1;
0d20ef
+
0d20ef
+#if 0
0d20ef
   struct backend_uml_data *data = datav;
0d20ef
   CLEANUP_FREE_STRINGSBUF DECLARE_STRINGSBUF (cmdline);
0d20ef
   int console_sock = -1, daemon_sock = -1;
0d20ef
@@ -503,6 +509,7 @@ launch_uml (guestfs_h *g, void *datav, const char *arg)
0d20ef
   }
0d20ef
   g->state = CONFIG;
0d20ef
   return -1;
0d20ef
+#endif
0d20ef
 }
0d20ef
 
0d20ef
 /* This is called from the forked subprocess just before vmlinux runs,
0d20ef
-- 
0d20ef
1.8.3.1
0d20ef