On 7/6/06, Dan Nicholson <[EMAIL PROTECTED]> wrote:
Then check if anything is mounted. Look at /etc/mtab, or /proc/mounts
more properly.
if ! grep "/dev/hda2 $LFS" /proc/mounts >/dev/null; then
mount -v /dev/hda2 $LFS
fi
One other little thing. When Archaic changed the system over to bind
mounting /dev and doing the rest of the mounts from the host, the
build stopped doing any mounts inside the chroot. Because of this,
/etc/mtab is never created in the chroot (/proc/mounts still holds all
the mount info). It turns out that at least perl expects mtab to be
there. So, a `touch $LFS/etc/mtab' was added to the book.
For that reason, you probably want to add something like this to be safe.
[ -f ${LFS}/etc/mtab ] || touch ${LFS}/etc/mtab
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page