forked from josch/mmdebstrap
coverage.sh: /etc/apt/apt.conf.d/01autoremove-kernels is not anymore always created
This commit is contained in:
parent
ad56754a2a
commit
3babdb04cb
1 changed files with 6 additions and 2 deletions
|
@ -213,8 +213,12 @@ diff -u status1 status2
|
||||||
rm status1 status2
|
rm status1 status2
|
||||||
rm /tmp/debian-$dist-debootstrap/var/lib/dpkg/status /tmp/debian-$dist-mm/var/lib/dpkg/status
|
rm /tmp/debian-$dist-debootstrap/var/lib/dpkg/status /tmp/debian-$dist-mm/var/lib/dpkg/status
|
||||||
# debootstrap exposes the hosts's kernel version
|
# debootstrap exposes the hosts's kernel version
|
||||||
rm /tmp/debian-$dist-debootstrap/etc/apt/apt.conf.d/01autoremove-kernels \
|
if [ -e /tmp/debian-$dist-debootstrap/etc/apt/apt.conf.d/01autoremove-kernels ]; then
|
||||||
/tmp/debian-$dist-mm/etc/apt/apt.conf.d/01autoremove-kernels
|
rm /tmp/debian-$dist-debootstrap/etc/apt/apt.conf.d/01autoremove-kernels
|
||||||
|
fi
|
||||||
|
if [ -e /tmp/debian-$dist-mm/etc/apt/apt.conf.d/01autoremove-kernels ]; then
|
||||||
|
rm /tmp/debian-$dist-mm/etc/apt/apt.conf.d/01autoremove-kernels
|
||||||
|
fi
|
||||||
# who creates /run/mount?
|
# who creates /run/mount?
|
||||||
if [ -e "/tmp/debian-$dist-debootstrap/run/mount/utab" ]; then
|
if [ -e "/tmp/debian-$dist-debootstrap/run/mount/utab" ]; then
|
||||||
rm "/tmp/debian-$dist-debootstrap/run/mount/utab"
|
rm "/tmp/debian-$dist-debootstrap/run/mount/utab"
|
||||||
|
|
Loading…
Reference in a new issue