On 11/28/18 10:11 PM, Ken Moffat wrote:
On Wed, Nov 28, 2018 at 07:15:14PM -0600, renodr wrote:
Look for Fusion MPT support and build all of that, as well as the VMWare
VMCI Driver, SCSI Disk/Device/Generic support, Buslogic SCSI support, and
PVSCSI support. You might need the VMXNET3 driver as well.
since so many people seem to build in VMs, and have problems, maybe
we ought to document this somewhere ? Alternatively, perhaps using
lsmod like on a distro does actually work on VMs ?
ĸen
I build using OverlayFs. It is much better than to try to build it in a
VM. I make a container that will have the host build system:
msg_line "Creating root filesystem container - this may take awhile
--> "
dd if=/dev/zero of=host.img bs=4096 count=512000 > /dev/null 2>&1
mkfs -t ext4 host.img > /dev/null 2>&1
then populate it with a host system ie PClinuxOS or LFS-8.2.
This gives me a host system called host.img
It gets mounted as read only:
OVERLAY=OVERLAY
msg_line "Mounting file systems --> "
mountpoint -q ${OVERLAY}/lower || mount --read-only host.img
${OVERLAY}/lower
mountpoint -q ${OVERLAY}/overlay || mount -t overlay overlay -o
lowerdir=${OVERLAY}/lower,upperdir=${OVERLAY}/upper,workdir=${OVERLAY}/workdir
${OVERLAY}/overlay
mountpoint -q ${OVERLAY}/overlay/dev || mount --bind /dev
${OVERLAY}/overlay/dev
mountpoint -q ${OVERLAY}/overlay/dev/pts || mount -t devpts devpts
${OVERLAY}/overlay/dev/pts -o gid=5,mode=620
mountpoint -q ${OVERLAY}/overlay/proc || mount -t proc proc
${OVERLAY}/overlay/proc
mountpoint -q ${OVERLAY}/overlay/sys || mount -t sysfs sysfs
${OVERLAY}/overlay/sys
mountpoint -q ${OVERLAY}/overlay/run || mount -t tmpfs tmpfs
${OVERLAY}/overlay/run
msg_success
Then:
msg "Chrooting overlay file system --> "
chroot "${OVERLAY}/overlay" \
env -i \
HOME=/root \
TERM="$TERM" \
PS1='(blfs chroot) \u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
/bin/bash --login +h
I then build the new system.
The "lower" filesystem never gets changed
the "upper" contains all the newer files and changes to the lower ro
filesystem
the overlay is the merge filesystem (lower merged with upper) and it is
where you do your work
--
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