diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-09-09 23:19:00 +0000 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-09-09 23:19:00 +0000 |
| commit | c9e8978638fcd1404cbe3d6e492dac93dc7f7244 (patch) | |
| tree | 59dea94350a2347e92358b7ec131643a688f7da6 | |
| parent | d6f10eb8171a0556924840548cd1e9a6b10b025d (diff) | |
| download | dotfiles-c9e8978638fcd1404cbe3d6e492dac93dc7f7244.tar.gz dotfiles-c9e8978638fcd1404cbe3d6e492dac93dc7f7244.tar.xz | |
Add /dev/pts to the mounted filesystems in 'syschroot'
| -rw-r--r-- | mkshrc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -290,13 +290,14 @@ syschroot() { CUR_PS1="$PS1" PS1="(CHROOT) # " mount -o bind /dev $CHDIR/dev + mount -o bind /dev/pts $CHDIR/dev/pts mount -o bind /sys $CHDIR/sys mount -o bind /proc $CHDIR/proc if [ "$PROG" = "/bin/bash" ] ; then PS1="(CHROOT) [ \u@\h \w ] # " fi chroot $CHDIR $PROG - umount $CHDIR/dev $CHDIR/sys $CHDIR/proc + umount $CHDIR/dev/pts $CHDIR/dev $CHDIR/sys $CHDIR/proc PS1="$CUR_PS1" } |
