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

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