mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0010-appliance-Set-udev.event-timeout-to-override-default.patch

0d20ef
From da3c6e70aa08edafcc8396a4c3e007a263d7d956 Mon Sep 17 00:00:00 2001
0d20ef
From: "Richard W.M. Jones" <rjones@redhat.com>
0d20ef
Date: Mon, 20 Oct 2014 14:01:25 +0100
0d20ef
Subject: [PATCH] appliance: Set udev.event-timeout to override default too low
0d20ef
 udev setting.
0d20ef
0d20ef
Unfortunately udev removed the udevtimeout setting on the kernel
0d20ef
command line.  This means the default timeout was being set back to 30
0d20ef
seconds, which is way too low for remote disks.
0d20ef
0d20ef
However it was re-added (2014-07-29) as udev.event-timeout.  Set both
0d20ef
to be sure.
0d20ef
0d20ef
Note this requires systemd >= 216.
0d20ef
0d20ef
(cherry picked from commit 0b49defc2b4307e1f9159b862637978129aaed29)
0d20ef
---
0d20ef
 src/launch.c | 1 +
0d20ef
 1 file changed, 1 insertion(+)
0d20ef
0d20ef
diff --git a/src/launch.c b/src/launch.c
0d20ef
index dba68fd..9fadce8 100644
0d20ef
--- a/src/launch.c
0d20ef
+++ b/src/launch.c
0d20ef
@@ -353,6 +353,7 @@ guestfs___appliance_command_line (guestfs_h *g, const char *appliance_dev,
0d20ef
      " efi-rtc=noprobe"
0d20ef
 #endif
0d20ef
      " udevtimeout=6000"/* for slow systems (RHBZ#480319, RHBZ#1096579) */
0d20ef
+     " udev.event-timeout=6000" /* for newer udevd */
0d20ef
      " no_timer_check"  /* fix for RHBZ#502058 */
0d20ef
      "%s"               /* lpj */
0d20ef
      " acpi=off"        /* we don't need ACPI, turn it off */
0d20ef
-- 
0d20ef
1.8.3.1
0d20ef