Package: schroot Version: 1.6.4-4 If chroot filesystem contains /etc/passwd and it is symbolic link, schroot fails with
E: 20nssdatabases: /etc/schroot/setup.d/20nssdatabases: 32: /etc/schroot/setup.d/20nssdatabases: cannot create /var/lib/schroot/mount/ZZZ-d2fb7e61-a09a-49d3-8ce1-d1e8c172dbeb/etc/passwd: Directory nonexistent This is because copy operation in dup_nss() tries to follow the symbolic link. Changing dup_nss() function to the following fixed the problem for me: dup_nss() { info "Copying $1 database to $2" rm -f "$2" getent "$1" > "$2" }