View previous topic :: View next topic |
Author |
Message |
tantrum n00b

Joined: 01 Jan 2014 Posts: 5
|
Posted: Wed Jan 01, 2014 3:45 pm Post subject: One partition for distfiles and packages |
|
|
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 |
|
 |
ulenrich Veteran

Joined: 10 Oct 2010 Posts: 1390
|
Posted: Wed Jan 01, 2014 3:53 pm Post subject: |
|
|
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 _________________ the thread ain't easily find an end |
|
Back to top |
|
 |
jonathan183 Guru

Joined: 13 Dec 2011 Posts: 309
|
Posted: Wed Jan 01, 2014 5:52 pm Post subject: |
|
|
I'd use mount bind for this sort of issue ... |
|
Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 10390 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jan 01, 2014 5:59 pm Post subject: |
|
|
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 |
|
 |
|