@Debian Wheezy
$ script script: openpty failed: No such file or directory Terminated
# cd (chrootdir) # mount --bind /dev/pts dev/pts # chroot . # script Script started, file is typescript
@Debian Wheezy
$ script script: openpty failed: No such file or directory Terminated
# cd (chrootdir) # mount --bind /dev/pts dev/pts # chroot . # script Script started, file is typescript
http://d.hatena.ne.jp/tmatsuu/20101225/1293262061
bindだけだと/dev/や/sys/配下にサブマウントされたファイルシステムはマウントされないので、--rbindでマウントしましょう。
(中略)
- lオプションでlazy unmountを使うとアンマウントできます。
めも、未検証
http://qiita.com/mkamotsu/items/0135d2e756db4a18d965
# awk '{print $2}' /proc/mounts | grep ${CHROOT} | sort -r | xargs umount
めも、未検証