Blame SOURCES/0078-RHEL-8-Remove-User-Mode-Linux-RHBZ-1144197.patch

5ce0c7
From cbb6a42b9074ed78c74ddefee4ec7571132a4d24 Mon Sep 17 00:00:00 2001
46b2f6
From: "Richard W.M. Jones" <rjones@redhat.com>
46b2f6
Date: Fri, 19 Sep 2014 13:38:20 +0100
46b2f6
Subject: [PATCH] RHEL 8: Remove User-Mode Linux (RHBZ#1144197).
46b2f6
46b2f6
This isn't supported in RHEL 8.
46b2f6
---
46b2f6
 lib/launch-uml.c | 13 +++++++++++++
46b2f6
 1 file changed, 13 insertions(+)
46b2f6
46b2f6
diff --git a/lib/launch-uml.c b/lib/launch-uml.c
46b2f6
index da20c17d9..a5e0e8179 100644
46b2f6
--- a/lib/launch-uml.c
46b2f6
+++ b/lib/launch-uml.c
46b2f6
@@ -44,7 +44,9 @@ struct backend_uml_data {
46b2f6
   char umid[UML_UMID_LEN+1];    /* umid=<...> unique ID. */
46b2f6
 };
46b2f6
 
46b2f6
+#if 0
46b2f6
 static void print_vmlinux_command_line (guestfs_h *g, char **argv);
46b2f6
+#endif
46b2f6
 
46b2f6
 /* Run uml_mkcow to create a COW overlay. */
46b2f6
 static char *
46b2f6
@@ -81,6 +83,7 @@ create_cow_overlay_uml (guestfs_h *g, void *datav, struct drive *drv)
46b2f6
   return make_cow_overlay (g, drv->src.u.path);
46b2f6
 }
46b2f6
 
46b2f6
+#if 0
46b2f6
 /* Test for features which are not supported by the UML backend.
46b2f6
  * Possibly some of these should just be warnings, not errors.
46b2f6
  */
46b2f6
@@ -128,10 +131,17 @@ uml_supported (guestfs_h *g)
46b2f6
 
46b2f6
   return true;
46b2f6
 }
46b2f6
+#endif
46b2f6
 
46b2f6
 static int
46b2f6
 launch_uml (guestfs_h *g, void *datav, const char *arg)
46b2f6
 {
46b2f6
+  error (g,
46b2f6
+	 "launch: In RHEL, only the 'libvirt' or 'direct' method is supported.\n"
46b2f6
+	 "In particular, User-Mode Linux (UML) is not supported.");
46b2f6
+  return -1;
46b2f6
+
46b2f6
+#if 0
46b2f6
   struct backend_uml_data *data = datav;
46b2f6
   CLEANUP_FREE_STRINGSBUF DECLARE_STRINGSBUF (cmdline);
46b2f6
   int console_sock = -1, daemon_sock = -1;
46b2f6
@@ -491,8 +501,10 @@ launch_uml (guestfs_h *g, void *datav, const char *arg)
46b2f6
   }
46b2f6
   g->state = CONFIG;
46b2f6
   return -1;
46b2f6
+#endif
46b2f6
 }
46b2f6
 
46b2f6
+#if 0
46b2f6
 /* This is called from the forked subprocess just before vmlinux runs,
46b2f6
  * so it can just print the message straight to stderr, where it will
46b2f6
  * be picked up and funnelled through the usual appliance event API.
46b2f6
@@ -522,6 +534,7 @@ print_vmlinux_command_line (guestfs_h *g, char **argv)
46b2f6
 
46b2f6
   fputc ('\n', stderr);
46b2f6
 }
46b2f6
+#endif
46b2f6
 
46b2f6
 static int
46b2f6
 shutdown_uml (guestfs_h *g, void *datav, int check_for_errors)
46b2f6
-- 
5ce0c7
2.18.4
46b2f6