mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0071-launch-Disable-USB-in-the-appliance.patch

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