Comment 25 for bug 65003

Revision history for this message
Steven McCoy (dsbunny) wrote : Re: ltsp-build-client needs to handle proxy settings for apt in the chroot

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