1 |
On Wed, 2015-06-10 at 18:48 +0000, Robin H. Johnson wrote: |
2 |
> On Wed, Jun 10, 2015 at 04:44:17PM +0000, Joakim Tjernlund wrote: |
3 |
> > I wonder if it would be possible to use the script from sys-apps/getent(included below) |
4 |
> > to impl. getent in user.eclass instead of using glibc's getent? I |
5 |
> > cannot see any downside, is there one? |
6 |
> > |
7 |
> > This would help a lot(just seed your groups/users is in ROOT/etc/{passwd,group ...} first) |
8 |
> > when cross building or ROOT != / as it would be trivial for the script to respect ROOT/EPREFIX |
9 |
> This would totally break when those services come from an NSS provider |
10 |
> other than files or compat. |
11 |
|
12 |
But does user.eclass support anything but local system users ? |
13 |
|
14 |
> |
15 |
> There was a non-upstream patch to support NSS on non-root filesystems, |
16 |
> which would probably help a lot more; I haven't seen that original patch |
17 |
> in a while, so here's a very quick and completely untested |
18 |
> re-implementation of it. |
19 |
> |
20 |
> In your case, you probably should MAKE sure that regardless of the |
21 |
> system nsswitch settings, the NSS file provider gets used. |
22 |
> |
23 |
> Usage: NSS_FILES_ROOT=$ROOT/etc getent -s files passwd ... |
24 |
> |