[Clfs-dev] [ book question ]
David Broadfoot
david at cross-lfs.org
Wed Mar 5 05:06:49 PST 2008
Adrian,
THe ${CLFS} is only needed when U are building outside the chroot.
${CLFS} is needed because it really simplifies building, instead of
typeing /mnt/clfs on every package, and it also allows for building
anywhere on the host system. When U enter the chroot, U are changing the
root from your host's root to ${CLFS}. After this, the variable is no
longer needed.....
chroot "${CLFS}" /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
In the above command, it changes the current shell's root to ${CLFS},
cleans the env so that there is no host variables, and sets the few
needed ones.
Hope this helps,
Dave
Adrian Migraso wrote:
> hi,
>
> i have been browsing the clfs-embedded (x86), and didn't notice an
> instruction to chroot in the $CLFS environment...
>
> is this a working book?
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Clfs-dev mailing list
> Clfs-dev at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org
>
More information about the Clfs-dev
mailing list