Deleting the debootstrap.log before the rm -rf highlights that the problem is with the NFS temporary file:
rm: cannot remove `/opt/ltsp/i386/debootstrap/.nfs00040c7200000102': Device or resource busy
So would be this categorised as a known deficiency in debootstrap/rm and hence ltstp-build-client should be updated ala:
--- 010-debootstrap.original 2006-10-06 19:03:14.000000000 +0800 +++ 010-debootstrap 2006-10-06 19:02:46.000000000 +0800 @@ -7,6 +7,7 @@ DEBOOTSTRAPOPTS="$DEBOOTSTRAPOPTS --include=$INCLUDE" fi # Install base packages - LC_ALL=C debootstrap $DEBOOTSTRAPOPTS --arch $ARCH $DIST $ROOT $MIRROR + LC_ALL=C debootstrap $DEBOOTSTRAPOPTS --keep-debootstrap-dir --arch $ARCH $DIST $ROOT $MIRROR + rm -rf "$ROOT/debootstrap" ;; esac
Feedback from coreutils & debootstrap teams welcome.
Deleting the debootstrap.log before the rm -rf highlights that the problem is with the NFS temporary file:
rm: cannot remove `/opt/ltsp/ i386/debootstra p/.nfs00040c720 0000102' : Device or resource busy
So would be this categorised as a known deficiency in debootstrap/rm and hence ltstp-build-client should be updated ala:
--- 010-debootstrap .original 2006-10-06 19:03:14.000000000 +0800
DEBOOTSTR APOPTS= "$DEBOOTSTRAPOP TS --include=$INCLUDE" debootstrap- dir --arch $ARCH $DIST $ROOT $MIRROR
+++ 010-debootstrap 2006-10-06 19:02:46.000000000 +0800
@@ -7,6 +7,7 @@
fi
# Install base packages
- LC_ALL=C debootstrap $DEBOOTSTRAPOPTS --arch $ARCH $DIST $ROOT $MIRROR
+ LC_ALL=C debootstrap $DEBOOTSTRAPOPTS --keep-
+ rm -rf "$ROOT/debootstrap"
;;
esac
Feedback from coreutils & debootstrap teams welcome.