Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
One partition for distfiles and packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
tantrum
n00b
n00b


Joined: 01 Jan 2014
Posts: 5

PostPosted: Wed Jan 01, 2014 3:45 pm    Post subject: One partition for distfiles and packages Reply with quote

When partitioning my drive during the installation of Gentoo, I came across a thread which mentioned that combining /usr/portage/distfiles and /usr/varpackages on a partition with 4K block size makes sense.

I have no idea how to apply this to my own system. I declared an partition of about 20 GB with 4K block size to be mounted to both distfiles and packages in /etc/fstab, but only one of them mounts

Somewhere I've read that you can bind-mount a partition to achieve this.

How do I work this out?

tt.
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1377

PostPosted: Wed Jan 01, 2014 3:53 pm    Post subject: Reply with quote

Make a partition labeled common and mounted at /common, then

etc/portage/make.conf
Code:

...
PORT_LOGDIR="/common/log"
PKGDIR="/common/pkgdir"
PORTDIR="/common/portdir"
DISTDIR=/common/distfiles
...
cat /etc/portage/repos.conf/gentoo.conf
Code:
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /common/portdir
sync-type = rsync
sync-uri = rsync://rsync.de.gentoo.org/gentoo-portage
priority = 5

I have another experimental gentoo partition, I put in make.conf:
PORT_LOGDIR="/common/log-experimental"
The rest is identical, which enables me to not double compile but to utilize "emerge --usepkg ..."

I have made a symlink /usr/portage pointing to /common/portdir, just in case
any script doesn't respect my make.conf PORTIDR
_________________
fun2gen2
Back to top
View user's profile Send private message
jonathan183
Guru
Guru


Joined: 13 Dec 2011
Posts: 309

PostPosted: Wed Jan 01, 2014 5:52 pm    Post subject: Reply with quote

I'd use mount bind for this sort of issue ...
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10279
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jan 01, 2014 5:59 pm    Post subject: Reply with quote

Me, too. That way, things are in their traditional expected places.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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