http://bugzilla.novell.com/show_bug.cgi?id=550318 User stefan.bruens@rwth-aachen.de added comment http://bugzilla.novell.com/show_bug.cgi?id=550318#c11 --- Comment #11 from Stefan Brüns <stefan.bruens@rwth-aachen.de> 2009-11-03 09:29:04 MST --- I think there are two possible ways to implement this: 1. fgetpwent($ROOT_DIR/etc/passwd, ...) Rationale: chroot works on a filesystem level anyway. rpm --root is used for bootstrapping, just to install the base system. After the base system has been installed, rpm can be started inside the chroot. Drawback: For "--root", only /etc/passwd will be honored, nsswitch.conf will be ignored. I think this is a non-issue, but this should be documented. 2. Use a helper executed in the chroot Rationale: Behavior will be like in the fully setup system, as nsswitch will be honored. Drawback: Higher complexity. Helper has to be copied into the chroot (or proc has to be bind-mounted into the chroot, to make open+fexecve work). Should only be active for the chroot-case, to avoid slowdowns. (uid 0/root is hardcoded in rpm (lib/fsm.c). So only use helper on demand?) -- For the time being, can we have "rpm --setguids" after the first stage in kiwi-ltsp-setup? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.