summaryrefslogtreecommitdiffstats
path: root/bin/debian-chroot
diff options
context:
space:
mode:
Diffstat (limited to 'bin/debian-chroot')
-rwxr-xr-xbin/debian-chroot8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/debian-chroot b/bin/debian-chroot
index 6d0c776..22e4d4c 100755
--- a/bin/debian-chroot
+++ b/bin/debian-chroot
@@ -283,7 +283,7 @@ EOF
;;
esac
- chown 1000:1000 "${CHROOT}/build/.bash_history"
+ chown 1000:1000 "${CHROOT}/build/.bash_history"*
echo "build ALL=NOPASSWD: ALL" >> "${CHROOT}/etc/sudoers"
;;
@@ -408,6 +408,12 @@ EOF
;;
esac
+ if [ -e "${CHROOT}/build/.bash_history.orig" ]
+ then
+ rm -f "${CHROOT}/build/.bash_history"
+ cp -a "${CHROOT}/build/.bash_history.orig" "${CHROOT}/build/.bash_history"
+ fi
+
rsync -av --delete "${CHROOT}"/ "${CHROOT}".orig
mount proc-$(basename ${CHROOT}) "${CHROOT}/proc" -t proc