Dan, two questions. Would this be an acceptable script for beginning or
resuming a Chap 6 build session? And what would be the consequences of
allowing Chap6.8 to build on the real /dev rather than a tempfs?
(Besides wasting a little space after udev mounts the tempfs there.)
#!/bin/bash
# Prepare & enter the build environment for a session
if [ ! -d $LFS ] ; then
mount /dev/hda2 $LFS
fi &&
if [ ! -d $LFS/proc ] ; then
mkdir -vp $LFS/{dev,proc,sys} &&
mknod -m 600 $LFS/dev/console c 5 1 &&
mknod -m 666 $LFS/dev/null c 1 3
fi &&
mount --bind /dev $LFS/dev
mount -vt proc proc $LFS/proc &&
mount -vt sysfs sysfs $LFS/sys &&
mount -vft tmpfs tmpfs $LFS/dev/shm &&
mount -vft devpts -o gid=4,mode=620 devpts $LFS/dev/pts &&
chroot "$LFS" /tools/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
/tools/bin/bash --login +h
Paul Rogers ([EMAIL PROTECTED])
http://www.xprt.net/~pgrogers/
http://www.geocities.com/paulgrogers/
Rogers' Second Law: "Everything you do communicates."
(I do not personally endorse any additions after this line. TANSTAAFL
:-)
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page