See code comment for explanation. Signed-off-by: Wei Liu <wei.l...@citrix.com> --- 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@lists.xen.org https://lists.xen.org/xen-devel