Linux From Scratch 进入chroot之后,执行下列命令:
expect -c "spawn ls"
错误提示:
spawn ls
The system has no more ptys. Ask your system administrator to create more.
while executing
"spawn ls"
系统没有足够的pty。怎么解决呢?
退出chroot环境,执行下面的命令:
mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts
mount -vt tmpfs shm $LFS/dev/shm
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
然后重新进入chroot,就可以了。
网友评论