[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 11/16] ts-debian-fixup: use correct resume device



See code comment for explanation.

Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 ts-debian-fixup | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/ts-debian-fixup b/ts-debian-fixup
index d476467..fe37c30 100755
--- a/ts-debian-fixup
+++ b/ts-debian-fixup
@@ -176,6 +176,18 @@ sub otherfixupcfg () {
     }
 
 
+    # There might be stale entries in /etc/initramfs-tools/conf.d/resume
+    # which get stored in the initramfs. That introduces delay in guest booting
+    # which might cause tests to fail.
+    #
+    # This is particularly prominent in systemd enabled releases when it tries
+    # to scan for the inexistent device(s) for a long time.
+    #
+    # Override that in kernel command line with the correct swap partition.
+    $cfg =~ m/'phy:.+-swap,(xvda\d+),.*'/;
+    $extra .= " resume=/dev/$1";
+    logm("change resume device to $1");
+
     $cfg =~ s/^extra.*//mg;
     $cfg .= "\nextra='$extra'\n";
 };
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.