View previous topic :: View next topic |
Author |
Message |
flysideways Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Jan 2005 Posts: 501
|
Posted: Wed Nov 10, 2021 2:42 pm Post subject: Embedded Handbook Question |
|
|
Code: | root #mkdir -p usr/portage
Mount the required directories:
root #mount --bind /usr/portage usr/portage
root #mount --bind /proc proc
root #mount --bind /sys sys
root #mount --bind /dev dev
root #mount --bind /dev/pts dev/pts
Chroot into the environment: |
This quote from the Embedded Handbook is using the deprecated /usr/portage instead of /var/db/repos/gentoo.
What should it be? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5401 Location: Bavaria
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flysideways Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Jan 2005 Posts: 501
|
Posted: Wed Nov 10, 2021 3:45 pm Post subject: |
|
|
This is for a chroot build and I thought it was mounting the host so as to not need the tree in the chroot.
I just created the directory and synced it, but that is a kludge, I think.
Eternel noob here.
Thanks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23114
|
Posted: Wed Nov 10, 2021 4:32 pm Post subject: |
|
|
Generically, it should be $PORTDIR. On old systems, that was /usr/portage. On new ones, /var/db/repos/gentoo. Yes, it is mounting the host's filesystems into the chroot. Use the host's $PORTDIR on the left side and the chroot's $PORTDIR for the mkdir and the right side. Note that the chroot has no leading / in this section. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flysideways Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Jan 2005 Posts: 501
|
Posted: Wed Nov 10, 2021 8:03 pm Post subject: |
|
|
Thanks, Hu.
Something that eludes me is a comprehensive understanding of the system variables, what's needed, what's declared, etc.. I have looked and if there is some written guide to help me, I have not recognized it.
As one of many examples, shouldn't there be a way of seeing what is declared as PORTDIR? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54866 Location: 56N 3W
|
Posted: Wed Nov 10, 2021 8:52 pm Post subject: |
|
|
flysideways,
Its all set by your selected profile. Profiles are cascading. Unravelling one will make your head hurt. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flysideways Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Jan 2005 Posts: 501
|
Posted: Thu Nov 11, 2021 2:26 pm Post subject: |
|
|
Yeah, head hurts. How'd you know? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|