thank you for the suggestions!
I tried them, but they didn't work
I have enough ptys in the host enviroment, but not in the chrooted enviroment
Code:
linux:/home/seabass # expect -c "spawn ls"
spawn ls
linux:/home/seabass # ~lfs/start.sh
mount: proc already mounted or /home/lfs/lfs/proc busy
mount: according to mtab, proc is already mounted on /home/lfs/lfs/proc
mount: sysfs already mounted or /home/lfs/lfs/sys busy
mount: according to mtab, sysfs is already mounted on /home/lfs/lfs/sys
root:/# expect -c "spawn ls"
spawn ls
The system has no more ptys. Ask your system administrator to create more.
while executing
"spawn ls"
After the last message, the "root:/#" prompt fails to return, forcing me to close the shell.