On Mon, Dec 06, 2010 at 08:41:32PM +0100, Julian Andres Klode wrote: > => file from netbase&host not equal to the one in chroot > > Explanation > ----------- > <jcristau> ah right > <jcristau> because schroot iterates around getservent, it doesn't just > copy the file > > Solution > ======== > Copy the files instead?
NSS databases can't simply be copied. In the simple case, this is certainly possible. But for arbitrary NSS configurations where /etc/nsswitch.conf is using configurations other than the basic files, this is not the correct behaviour. By default, we dump the database using getent(1) to the flat file in the chroot. This covers all configurations (except for very large sites, where you don't want to dump the entire LDAP passwd/group dbs on each session startup for performance reasons, so copying a subset of selected entries should be done instead). Now, historically we did copy the files until we got into the above problems. The copyfiles mechanism is still present and can still be used to copy the files if you want to do it this way. It's not the default, because it's too inflexible and fragile, but if you want to configure schroot this way, it's entirely possible. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
signature.asc
Description: Digital signature