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