An alternative work around would be for debootstrap to move the log outside of the debootstrap directory, unlink, then "rm -rf" the debootstrap directory. This would leave the logs .nfs* file in the chroot root until debootstrap completes:
if [ -e $TARGET/debootstrap/debootstrap.log ]; then
mv $TARGET/debootstrap/debootstrap.log $TARGET/debootstrap.log
rm $TARGET/debootstrap.log
fi
rm -rf "$TARGET/debootstrap"
Or just update the log copy section to move:
if [ -e $TARGET/debootstrap/debootstrap.log ]; then
if [ "$KEEP_DEBOOTSTRAP_DIR" = true ]; then
cp $TARGET/debootstrap/debootstrap.log $TARGET/var/log/bootstrap.log
else
mv $TARGET/debootstrap/debootstrap.log $TARGET/var/log/bootstrap.log
fi
fi
sync
An alternative work around would be for debootstrap to move the log outside of the debootstrap directory, unlink, then "rm -rf" the debootstrap directory. This would leave the logs .nfs* file in the chroot root until debootstrap completes:
if [ -e $TARGET/ debootstrap/ debootstrap. log ]; then debootstrap/ debootstrap. log $TARGET/ debootstrap. log debootstrap. log debootstrap"
mv $TARGET/
rm $TARGET/
fi
rm -rf "$TARGET/
Or just update the log copy section to move:
if [ -e $TARGET/ debootstrap/ debootstrap. log ]; then DEBOOTSTRAP_ DIR" = true ]; then debootstrap/ debootstrap. log $TARGET/ var/log/ bootstrap. log debootstrap/ debootstrap. log $TARGET/ var/log/ bootstrap. log
if [ "$KEEP_
cp $TARGET/
else
mv $TARGET/
fi
fi
sync