From 0e49b70a0fdd979ed598be99e855d172b58f83e5 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Thu, 28 Feb 2019 00:18:06 +0100 Subject: [PATCH] coverage.sh: /run/mount/utab is created inside qemu but not on gitlab CI -- weird... --- coverage.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/coverage.sh b/coverage.sh index 6d723ea..c560cc9 100755 --- a/coverage.sh +++ b/coverage.sh @@ -161,8 +161,12 @@ rmdir /tmp/debian-$dist-mm/var/lib/apt/lists/auxfiles rm /tmp/debian-$dist-debootstrap/etc/apt/apt.conf.d/01autoremove-kernels \ /tmp/debian-$dist-mm/etc/apt/apt.conf.d/01autoremove-kernels # who creates /run/mount? -rm -f /tmp/debian-$dist-debootstrap/run/mount/utab -rmdir /tmp/debian-$dist-debootstrap/run/mount +if [ -e "/tmp/debian-$dist-debootstrap/run/mount/utab" ]; then + rm "/tmp/debian-$dist-debootstrap/run/mount/utab" +fi +if [ -e "/tmp/debian-$dist-debootstrap/run/mount" ]; then + rmdir "/tmp/debian-$dist-debootstrap/run/mount" +fi # debootstrap doesn't clean apt rm /tmp/debian-$dist-debootstrap/var/lib/apt/lists/127.0.0.1_debian_dists_${dist}_main_binary-amd64_Packages \ /tmp/debian-$dist-debootstrap/var/lib/apt/lists/127.0.0.1_debian_dists_${dist}_Release \