]> xenbits.xensource.com Git - osstest.git/commitdiff
ts-debian-fixup: append noresume
authorWei Liu <wei.liu2@citrix.com>
Fri, 13 Oct 2017 12:14:16 +0000 (13:14 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Wed, 10 Apr 2019 14:05:43 +0000 (15:05 +0100)
See code comment for explanation.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v4: Fix grammar error in comment.

ts-debian-fixup

index 478dc2afca83a69b108405fc1465c0efcd7d7e8a..0e553d4777bee193512919dd93fc3fa3add42d18 100755 (executable)
@@ -178,6 +178,16 @@ sub otherfixupcfg () {
         $extra .= " iommu=soft";
     }
 
+    # 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 stretch when it tries to scan for the
+    # nonexistent device(s) for a long time. See also Debian bug #784810.
+    #
+    # Append noresume to fix the issue.
+    $extra .= " noresume";
+
     if ($cfg =~ m/extra\s*=\s*['"](.*)['"]/) {
        $cfg =~ s/extra\s*=\s*['"](.*)['"]/extra = '$1 $extra'/;
     } else {