> My question is how to best recreate the proc, sys & /dev/pts
> environment in sda3. They exist in sda1 but to my knowledge neither
> tar nor rsync will properly copy these directories. Believe repeating
> LFS steps may accomplish this but after examining the 7.6 docs it isn't
clear which ones would do it.
You do not need, nor want, to copy the contents of those directories.
All you need is the mountpoints (specifically /proc, /sys and /dev).
As root on the host, with the LFS partition mounted at /mnt/lfs,
mkdir -v /mnt/lfs/{dev,proc,sys}
If you need to go back in to chroot for any reason, mount the contents from
the host:
mount --bind /dev /mnt/lfs/dev
mount --bind /proc /mnt/lfs/proc
mount --bind /sys /mnt/lfs/sys
We seem to make some effort to ensure /dev/pts is mounted in chroot, but
for me (normally, on LFS hosts, but occasionally on a rescue system) binding
/dev ensures that /dev/pts is present.
/proc and /sys are a view of the running kernel. /dev is the devices, as
mediated by udev and the kernel in most modern systems (if you really
wanted, you could avoid udev and use static devices but for most uses udev
is easier and LFS expects you to use udev, or more specifically eudev).
?en
--
**********************************************
That worked! It booted and the static IP came up too. Awesome.
At the "native-lfs login:" prompt I logged-in as root, then it delivered:
"No mail.
-bash-4.3#"
Although I expected to see a prompt like
"root@native-lfs#"
Is the "-bash-4.3#" prompt normal?
This is a milestone. Thanks!
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style