|
|
|
@ -38,6 +38,7 @@ rm /tmp/debian-chroot/etc/hostname
|
|
|
|
|
rm /tmp/debian-chroot/etc/resolv.conf
|
|
|
|
|
rm /tmp/debian-chroot/var/lib/apt/lists/lock
|
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/status
|
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/arch
|
|
|
|
|
# the rest should be empty directories that we can rmdir recursively
|
|
|
|
|
find /tmp/debian-chroot -depth -print0 | xargs -0 rmdir
|
|
|
|
|
for f in /etc/resolv.conf /etc/hostname; do
|
|
|
|
@ -66,6 +67,7 @@ rm /tmp/debian-chroot/etc/hostname
|
|
|
|
|
rm /tmp/debian-chroot/etc/resolv.conf
|
|
|
|
|
rm /tmp/debian-chroot/var/lib/apt/lists/lock
|
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/status
|
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/arch
|
|
|
|
|
# the rest should be empty directories that we can rmdir recursively
|
|
|
|
|
find /tmp/debian-chroot -depth -print0 | xargs -0 rmdir
|
|
|
|
|
for f in /etc/resolv.conf /etc/hostname; do
|
|
|
|
@ -95,5 +97,6 @@ rm /tmp/debian-chroot/etc/hostname
|
|
|
|
|
rm /tmp/debian-chroot/etc/resolv.conf
|
|
|
|
|
rm /tmp/debian-chroot/var/lib/apt/lists/lock
|
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/status
|
|
|
|
|
rm /tmp/debian-chroot/var/lib/dpkg/arch
|
|
|
|
|
# the rest should be empty directories that we can rmdir recursively
|
|
|
|
|
find /tmp/debian-chroot -depth -print0 | xargs -0 rmdir
|
|
|
|
|