coverage.sh: /run/mount/utab is created inside qemu but not on gitlab CI -- weird...

This commit is contained in:
Johannes 'josch' Schauer 2019-02-28 00:18:06 +01:00
parent c747f6ba1f
commit 0e49b70a0f
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -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 \ rm /tmp/debian-$dist-debootstrap/etc/apt/apt.conf.d/01autoremove-kernels \
/tmp/debian-$dist-mm/etc/apt/apt.conf.d/01autoremove-kernels /tmp/debian-$dist-mm/etc/apt/apt.conf.d/01autoremove-kernels
# who creates /run/mount? # who creates /run/mount?
rm -f /tmp/debian-$dist-debootstrap/run/mount/utab if [ -e "/tmp/debian-$dist-debootstrap/run/mount/utab" ]; then
rmdir /tmp/debian-$dist-debootstrap/run/mount 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 # 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 \ 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 \ /tmp/debian-$dist-debootstrap/var/lib/apt/lists/127.0.0.1_debian_dists_${dist}_Release \