We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a61710f commit 64ab6d4Copy full SHA for 64ab6d4
misc-tools/dj_make_chroot.in
@@ -310,6 +310,11 @@ if [ -n "$WORKDIR" ] && [ -d "$WORKDIR" ]; then
310
rm -rf "$WORKDIR"
311
fi
312
313
+# Add indication to interactive shell that the user is in the chroot
314
+for bashrc in "root/.bashrc" "etc/bash.bashrc"; do
315
+ echo 'PS1=(chroot)$PS1' >> "$CHROOTDIR/$bashrc"
316
+done
317
+
318
rm -f "$CHROOTDIR/etc/resolv.conf"
319
cp /etc/resolv.conf /etc/hosts /etc/hostname "$CHROOTDIR/etc" || true
320
cp /etc/ssl/certs/ca-certificates.crt "$CHROOTDIR/etc/ssl/certs/" || true
0 commit comments