[Rpm-maint] installroot and NSS modules

2014-01-08 Thread Colin Walters
Hi,

I'm working on
https://mail.gnome.org/archives/ostree-list/2014-January/msg0.html
and it has some code that uses yum --installroot.  However, the system
requires a custom nss-altfiles NSS module that causes
/usr/sbin/useradd -r to write to /usr/lib/passwd.

But rpm from the host side is not correctly detecting these users.  If I
chroot in, I can run getent OK.  I note in the RPM CHANGES file a
note:

2.4.4 - 2.4.5:

call getpwnam()/endpwent() once before a chroot(), forcing name
 service shared libs to be loaded from outside of the root path

Then later:

4.2.2 - 4.2.3:

fix: do getpwnam/getgrnam to load correct modules before chroot

Which is correct?  Does yum --installroot require the same NSS
configuration on the external host and in the chroot now?  If it is not
intended to be required, where is the code in RPM to initialize NSS from
inside the chroot?   I looked but couldn't find it offhand.





___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] installroot and NSS modules

2014-01-08 Thread Colin Walters
On Wed, 2014-01-08 at 15:06 -0500, Colin Walters wrote:

 But rpm from the host side is not correctly detecting these users.  

I realized after sending this sentence is unclear.  More precisely,
from the current polkit.spec:

%attr(0700,polkitd,root) %dir %{_datadir}/polkit-1/rules.d

rpm says:

warnng: user polkitd does not exist - using root



___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint