From 7aa71ddf263e09afdcb75013b8582aafd9ca00d4 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 28 Apr 2016 14:12:23 +0100
Subject: [PATCH] launch: Disable USB in the appliance.
Only saves a tiny amount of time, but as we don't use USB
we might as well disable it.
(cherry picked from commit 29cb8d60d25f650b077e631269ee05c3e4441d75)
---
src/launch.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/launch.c b/src/launch.c
index 98eca07..9f5b14f 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -339,6 +339,7 @@ guestfs_int_appliance_command_line (guestfs_h *g, const char *appliance_dev,
" acpi=off" /* ACPI is slow - 150-200ms extra on my laptop */
" printk.time=1" /* display timestamp before kernel messages */
" cgroup_disable=memory" /* saves us about 5 MB of RAM */
+ " usbcore.nousb" /* disable USB, only saves about 1ms */
"%s" /* root=appliance_dev */
" %s" /* selinux */
" %s" /* quiet/verbose */
--
2.7.4