Gentoo Archives: gentoo-dev

From: Stefaan <stefaan@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] ebuilds creating mountpoints
Date: Sat, 14 Jan 2006 08:10:56
Message-Id: 28edf05e0601140008j148d626fx77c02b620bcf60a@mail.gmail.com
In Reply to: Re: [gentoo-dev] ebuilds creating mountpoints by Aron Griffis
1 On 1/11/06, Aron Griffis <agriffis@g.o> wrote:
2 > Bug 9849 has been marked a duplicate of 23851, but there is
3 > a distinction between the two: 23851 would be "solved" by pre-failing
4 > the merge phase if it is predicted to fail (permissions, diskspace).
5 > But 9849 is pretty specific to .keep files and directory creation, and
6 > needs to finish the merge even if some of those fail.
7
8 The only solution I can think of, is to merge to a "duplicate ROOTDIR"
9 like this (pseudo-code):
10 mount -o bind / /mnt/dup
11 ROOTDIR=/mnt/dup emerge {package}
12
13 Like this, mounts under / aren't mounted under /mnt/dup (e.g.
14 /mnt/dup/proc only contains .keep), so one can access the underlying
15 filesystem. Problem with this is: if you have /usr on a different
16 partition, you probably want to mount -o bind that as well, so you'll
17 have to make a distinction between mounts of instalation directories,
18 and mounts of run-time usage directories.
19
20 Stefaan
21
22 --
23 gentoo-dev@g.o mailing list