Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Embedded Handbook Question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 501

PostPosted: Wed Nov 10, 2021 2:42 pm    Post subject: Embedded Handbook Question Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5401
Location: Bavaria

PostPosted: Wed Nov 10, 2021 3:08 pm    Post subject: Re: Embedded Handbook Question Reply with quote

flysideways wrote:
This quote from the Embedded Handbook is using the deprecated /usr/portage instead of /var/db/repos/gentoo.

What should it be?


Take it from the AMD64 handbook:
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base#Mounting_the_necessary_filesystems
(there is no need to mount /avr/db/repos... after extracting the tarball)
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 501

PostPosted: Wed Nov 10, 2021 3:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23114

PostPosted: Wed Nov 10, 2021 4:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 501

PostPosted: Wed Nov 10, 2021 8:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54866
Location: 56N 3W

PostPosted: Wed Nov 10, 2021 8:52 pm    Post subject: Reply with quote

flysideways,

Code:
emerge --info


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
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 501

PostPosted: Thu Nov 11, 2021 2:26 pm    Post subject: Reply with quote

Yeah, head hurts. How'd you know?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum