On Wed, Aug 17, 2016 at 06:42:19PM +0100, Chris Lamb wrote: > Santiago Vila wrote: > > > > I'm afaid I still cannot reproduce it. Downgrading until somebody else > > > can. > > > > Well, I can. Not exactly the same error, but for now I will assume > > there is a common reason for them. > > Looking at this again "my" error appears to be caused by the fact that my > /etc/timezone and /etc/localtime are read-only at the filesystem level as > I inherit them from outside my container: > > --volume=/etc/adjtime:/etc/adjtime:ro > --volume=/etc/timezone:/etc/timezone:ro > --volume=/etc/localtime:/etc/localtime:ro > > When I turn that off, I can build fine. I find this strange, as I don't > actually build as root within this container so it couldn't write to it > even if it wanted. > > Any ideas?
My files are not read-only, but the /etc/localtime in my chroots, instead of being a copy of the binary file in /usr/share/zoneinfo, is just a symlink: /etc/localtime -> /usr/share/zoneinfo/Europe/Madrid I know this is not exactly what "dpkg-reconfigure tzdata" does, but I think it should be supported. Thanks.