[buildd-tools-devel] Bug#722280: schroot fails if $CHROOT/etc/passwd is a symbolic link
Ilya L
mephi42 at gmail.com
Mon Sep 9 19:20:16 UTC 2013
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"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20130909/522dd820/attachment.html>
More information about the Buildd-tools-devel
mailing list