vzctl does not setup HOME correctly (also HISTFILE, LANG)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Invalid
|
Medium
|
Unassigned | ||
OpenVZ Tools |
Confirmed
|
Medium
|
|||
vzctl (Debian) |
Fix Released
|
Unknown
|
|||
vzctl (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
After having upgraded my host system to Debian testing (basically from Hardy), the etckeeper/bzr setup in the containers started logging the debug output to /etc/.bzr.log (instead of /root/.bzr.log as before).
"vzctl exec" which is used to execute the command(s) in the OpenVZ container does not properly setup the $HOME variable, but this had been the case before already.
I will have to investigate if "vzctl exec $VZ 'echo $HOME'" has been "/" before upgrading already, or if this is a detail that has changed.
# vzctl exec 125 bzr --version
Bazaar (bzr) 2.1.2
Python interpreter: /usr/bin/python 2.5.2
Python standard library: /usr/lib/python2.5
Platform: Linux-2.
bzrlib: /usr/lib/
Bazaar configuration: .bazaar
Bazaar log file: .bzr.log
Copyright 2005-2010 Canonical Ltd.
http://
bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.
Bazaar is part of the GNU Project to produce a free operating system.
Changed in bzr: | |
status: | New → Incomplete |
Changed in vzctl (Ubuntu): | |
status: | New → Incomplete |
description: | updated |
Changed in bzr: | |
status: | Incomplete → New |
Changed in vzctl (Ubuntu): | |
status: | Incomplete → New |
Changed in openvz-tools: | |
status: | Unknown → In Progress |
Changed in openvz-tools: | |
importance: | Unknown → Medium |
Changed in vzctl (Debian): | |
status: | Unknown → Confirmed |
Changed in vzctl (Debian): | |
status: | Confirmed → Fix Released |
Changed in openvz-tools: | |
status: | In Progress → Confirmed |
My guess is that vzctl is setting $HOME to /etc now.