From 6ec09c27ca0a1b3e40861a2237ec62b36637378c Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sun, 22 May 2022 02:51:58 +0200 Subject: [PATCH] coverage.sh: mount tmpfs as workaround for #1010957 --- coverage.sh | 2 ++ run_qemu.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/coverage.sh b/coverage.sh index a05b75a..a66e678 100755 --- a/coverage.sh +++ b/coverage.sh @@ -838,6 +838,7 @@ fi adduser --gecos user --disabled-password user sysctl -w kernel.unprivileged_userns_clone=1 export SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH +mount -o size=4G -t tmpfs tmpfs /tmp # workaround for #1010957 $CMD --mode=root --variant=$variant $DEFAULT_DIST /tmp/debian-chroot-root.$format $mirror if [ "$format" = tar ]; then printf 'ustar ' | cmp --bytes=6 --ignore-initial=257:0 /tmp/debian-chroot-root.tar - @@ -3061,6 +3062,7 @@ include="--include=doc-debian" if [ "$variant" = "custom" ]; then include="\$include,base-files,base-passwd,coreutils,dash,diffutils,dpkg,libc-bin,sed" fi +mount -o size=4G -t tmpfs tmpfs /tmp # workaround for #1010957 $CMD \$include --mode=$defaultmode --variant=$variant \ --setup-hook='mkdir -p "\$1"/var/cache/apt/archives/partial' \ --setup-hook='touch "\$1"/var/cache/apt/archives/lock' \ diff --git a/run_qemu.sh b/run_qemu.sh index 433927e..ef76d5f 100755 --- a/run_qemu.sh +++ b/run_qemu.sh @@ -34,7 +34,7 @@ ret=0 timeout 20m qemu-system-x86_64 \ -cpu host \ -no-user-config \ - -M accel=kvm:tcg -m 1G -nographic \ + -M accel=kvm:tcg -m 4G -nographic \ -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 \ -monitor unix:/tmp/monitor,server,nowait \ -serial unix:/tmp/ttyS0,server,nowait \