M.Canales.es <manuel <at> linuxfromscratch.org> writes:
>
> No except if you find that it is a real bug and it may be reproducible by an
> editor.
>
Below is an example of repeating mount --bind and
getting two listings. I have experience where
running the commands repeatedly will add numerous
duplicate mounts resulting eventually in the
no ptys error which gets fixed by a reboot
or umount -l and removing the entries.
To avoid this I add some tests.
If the system is then reformatted it will
still have a reference to /dev from
mount --bind, so the script test will pass,
but no dev/pts or dev/shm will exist resulting
in the error.
Is it OK to explicitly create
dev/pts and dev/shm before mount --bind ?
This will fix my situation.
>From what you say it is not an error in
the book. However, it may be more FAQ
material.
lfs:~/lfs-scripts$ sudo mount
/dev/hda3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/hdb2 on /home type ext3 (rw)
/dev/hdb3 on /opt type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
automount(pid1351) on /net type autofs (rw,fd=4,pgrp=1351,minproto=2,maxproto=4)
>>>> /dev on /mnt/lfs/dev type none (rw,bind) <<<<
proc on /mnt/lfs/proc type proc (rw)
/dev/hdb1 on /mnt/lfs type ext3 (rw)
devpts on /mnt/lfs/dev/pts type devpts (rw)
shm on /mnt/lfs/dev/shm type tmpfs (rw)
sysfs on /mnt/lfs/sys type sysfs (rw)
lfs:~/lfs-scripts$ sudo mount --bind /dev ${LFS}/dev
lfs:~/lfs-scripts$ sudo mount
/dev/hda3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/hdb2 on /home type ext3 (rw)
/dev/hdb3 on /opt type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
automount(pid1351) on /net type autofs (rw,fd=4,pgrp=1351,minproto=2,maxproto=4)
>>>> /dev on /mnt/lfs/dev type none (rw,bind) <<<<
proc on /mnt/lfs/proc type proc (rw)
/dev/hdb1 on /mnt/lfs type ext3 (rw)
devpts on /mnt/lfs/dev/pts type devpts (rw)
shm on /mnt/lfs/dev/shm type tmpfs (rw)
sysfs on /mnt/lfs/sys type sysfs (rw)
>>>> /dev on /mnt/lfs/dev type none (rw,bind) <<<<
lfs:~/lfs-scripts$
Thanks,
Peter
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page