LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-23-2005, 04:05 PM   #1
Pheidon
LQ Newbie
 
Registered: Mar 2005
Posts: 16

Rep: Reputation: 0
Problem with BASH


Hey,
I am trying to create a LFS system on my computer. Right now, I am at the point where I chroot into the temporary system. The only problem is that BASH doesn't work correctly. When I enter something at the prompt, like 'ls', it executes the command and shows the results, but doesn't show a new prompt afterwards. I tried recompiling bash, but without success.
Does anyone what an idea of what might be wrong?

thanks!

Pheidon
 
Old 06-23-2005, 05:27 PM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
What was your host environment? What happens when you type expect -c "spawn ls"?
 
Old 06-23-2005, 06:24 PM   #3
Pheidon
LQ Newbie
 
Registered: Mar 2005
Posts: 16

Original Poster
Rep: Reputation: 0
My host enviroment is SuSE 9.2.
Well, all that does in my host enviroment is echo the words "spawn ls", but if I type it in the chroot'ed shell, I get:
"spawn ls
The system has no more ptys. Ask your system administrator to create more.
while executing
"spawn ls""
and no more prompt.

If I run the shell of my chroot'ed enviroment ( /tools/bin/bash) and enter "expect -c "spawn ls"" there, I get an echo, but no new prompt.

Any ideas on what went wrong?

thank you!

Pheidon
 
Old 06-23-2005, 07:23 PM   #4
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
I figured that was the problem, try one of these solutions:
http://wiki.linuxfromscratch.org/ind...20-%20Pass%202
 
Old 06-24-2005, 02:09 AM   #5
Pheidon
LQ Newbie
 
Registered: Mar 2005
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 06-24-2005, 02:34 AM   #6
Pheidon
LQ Newbie
 
Registered: Mar 2005
Posts: 16

Original Poster
Rep: Reputation: 0
okay, I got it!
These 2 fixes did it!
http://wiki.linuxfromscratch.org/ind...%20environment
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with bash adityavpratap Slackware 9 06-13-2006 09:44 AM
a problem about bash naihe2010 Linux - Enterprise 1 10-15-2005 11:06 AM
Bash Problem krock923 Programming 3 01-02-2005 01:40 PM
bash problem cL4YmAN Linux - Newbie 1 06-07-2004 01:32 PM
bash problem Vincent Slackware 2 10-30-2003 05:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration