bailongom | 17 Sep 14:16 2011
Picon

(No subject)

Hi,

I am using Trisquel, a Debian-based operating system, to setup a CCLFS.
The following report might be a useful fix to a bug arising from
accessing /dev/pts from a Chroot environment; or possibly, trigger
useful comments.

When installing Binutils based on Section 10.15 of the CLFS book, I
wasn't able to check the proper operation of PTYs from '  expect -c
"spawn ls"  '. This, in spite of closely following the CLFS book's
instructions.

After some thought, I realized that the contents of the /dev/pts folder 
were not accessible from the Chroot environment. I was not able to find 
a fix from the
CLFS mailbox nor through a few other web resources.

After some thought, I solved the problem by applying the --rbind or -R
option instead of '-o bind'  in 'mount -v -o bind  /dev  $CLFS/dev '
suggested in Section 8.4 (Entering the Chroot Environment) of the book.
Hopefully, this will serve as a useful error fix to others and/or 
induce useful comments.

Bailo
bailongom | 17 Sep 14:21 2011
Picon

'expect -c "spawn ls"' error: "the system has no more ptys"

Just resending with a subject heading this time.

-----Original Message-----
From: bailongom <bailongom <at> aol.com>
To: clfs-support <clfs-support <at> lists.cross-lfs.org>
Sent: Sat, Sep 17, 2011 12:16 pm
Subject: (No subject)

Hi,

I am using Trisquel, a Debian-based operating system, to setup a CCLFS.
The following report might be a useful fix to a bug arising from
accessing /dev/pts from a Chroot environment; or possibly, trigger
useful comments.

When installing Binutils based on Section 10.15 of the CLFS book, I
wasn't able to check the proper operation of PTYs from '  expect -c
"spawn ls"  '. This, in spite of closely following the CLFS book's
instructions.

After some thought, I realized that the contents of the /dev/pts folder
were not accessible from the Chroot environment. I was not able to find
a fix from the
CLFS mailbox nor through a few other web resources.

After some thought, I solved the problem by applying the --rbind or -R
option instead of '-o bind'  in 'mount -v -o bind  /dev  $CLFS/dev '
suggested in Section 8.4 (Entering the Chroot Environment) of the book.
Hopefully, this will serve as a useful error fix to others and/or
induce useful comments.
(Continue reading)


Gmane