X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fdchroot.creole;h=1f38d61befc6ec4815ead5e823c015d8aa8e5f51;hb=2d843b8eb0ebaf693a2c65b7b95ba13ce700ec6c;hp=d2128dc2f1f9e488e0408ea9420b6be97874aa85;hpb=d35de89bbbffef178803f5d79e7802d23287722b;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/dchroot.creole b/input/howto/dchroot.creole index d2128dc..1f38d61 100644 --- a/input/howto/dchroot.creole +++ b/input/howto/dchroot.creole @@ -26,7 +26,7 @@ chroot $DIST echo $DIST > /etc/debian_chroot # change root's .bashrc: - patch /root/.bashrc << 'EOF' + grep -q debian.chroot /etc/bash.bashrc || patch /root/.bashrc << 'EOF' @@ -3,2 +3,6 @@ export PS1='\h:\w\$ ' +if [ -e /etc/debian_chroot ]; then