Comment 4 for bug 622898

Revision history for this message
Daniel Hahler (blueyed) wrote : Re: [Bug 622898] Re: bzr via etckeeper logs to /etc/.bzr.log in OpenVZ containers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> It would also be worth checking BZR_HOME and BZR_LOG.

This is not set in env - I have posted the quite minimal "env" output IIRC.

> afaics bzr just uses whichever of those variables are set, so I'm fairly
> sure there's something outside of bzr causing this; please reopen if
> you're sure it's not.

It is caused by $HOME - I had patched vzctl previously to use "/root"
instead of "/", and done so now again (attached):

TERM=linux
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/
SHLVL=1
HOME=/root
_=/usr/bin/env
Bazaar (bzr) 2.1.2
  Python interpreter: /usr/bin/python 2.5.2
  Python standard library: /usr/lib/python2.5
  Platform: Linux-2.6.32-5-openvz-amd64-i686-with-debian-lenny-sid
  bzrlib: /usr/lib/python2.5/site-packages/bzrlib
  Bazaar configuration: /root/.bazaar
  Bazaar log file: /root/.bzr.log

However, if I remember correctly, Bazaar was using "HOME=/" previously
(and therefore logging to /), while it now discards HOME=/ and
apparently logs to the current working directory.

I am attaching the debdiff for reference.

- --
http://daniel.hahler.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFMf842fAK/hT/mPgARAqz9AJ9CnmtgSEMoMuE+aV+DrAxBCCtDeACgoiDs
CGKvoBGkmOvUMWeU4yqaXFI=
=O3pk
-----END PGP SIGNATURE-----