From 9f6be71d917eefcbe5871132e7378a048ab568cd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 23:02:16 +0200 Subject: Updating. Signed-off-by: Daniel Baumann --- bin/debian-chroot | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3