[buildd-tools-devel] Bug#586198: Bug#586198: 20nssdatabases fails if file does not exist in chroot
Roger Leigh
rleigh at codelibre.net
Sat Jun 26 22:21:14 UTC 2010
tags 586198 + fixed-upstream pending
thanks
On Thu, Jun 17, 2010 at 11:42:50AM +0200, Bastian Blank wrote:
> Package: schroot
> Version: 1.4.4-1
> Severity: important
> File: /etc/schroot/setup.d/20nssdatabases
>
> 20nssdatabases fails if the nss database does not already exist in the
> chroot:
> | $ dchroot-dsa sid-amd64
> | E: 20nssdatabases: /usr/bin/stat: cannot stat `/var/lib/schroot/mount/sid-amd64-388a214b-7be9-449d-9bf3-825a2042bded/etc/services': No such file or directory
> | E: sid-amd64-388a214b-7be9-449d-9bf3-825a2042bded: Chroot setup failed: stage=setup-start
>
> The easiest fix is to use
> | dc=$(/usr/bin/stat --format="%d %i" "${CHROOT_PATH}/etc/$db" 2>/dev/null || :)
Thanks for the suggestion. I've applied this change to 20nssdatabases,
and a similar fix to 20copyfiles (which used similar logic for stat
and md5sum).
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100626/335408ef/attachment-0001.pgp>
More information about the Buildd-tools-devel
mailing list