[lfs-support] Why are /usr/bin, /usr/sbin, /sbin in chroot command?

Michele Bucca michele.bucca at gmail.com
Tue Dec 27 17:18:59 PST 2016

Il 28 dic 2016 2:14 AM, "ssmtpmailtesting ssmtpmailtesting" <
ssmtpmailtesting at gmail.com> ha scritto:
> http://www.linuxfromscratch.org/lfs/view/stable/chapter06/chroot.html
> 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
> Why are /usr/bin, /usr/sbin, /sbin, /bin in chroot command? Aren't these
directories empty after completing temporary system? Aren't all packages
installed in /tools/bin not in /bin, /usr/bin, /usr/sbin, /sbin?

the command sets some variables when inside the chroot. Yes these
directories are empty but when you will install the final system the sysyem
will use the programs installed in the final proper location instead of
those put inside /tools (as you can see /tools/bin is the last put inside
the PATH variable)
> --
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20161228/40d0fbf2/attachment.html>

More information about the lfs-support mailing list