aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-01-26 00:11:15 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-07-08 17:05:21 +0100
commit534eb7fe732ec366292ec582ec2891ef0648ffcb (patch)
treeb8dc221620a7882d12b3622898982ad3778d4b55
parentb34ea0c6ea5449bbd2f4f9624e1644dc01b07e9d (diff)
downloadsos-534eb7fe732ec366292ec582ec2891ef0648ffcb.tar.gz
[lvm2] don't chroot if tmp is not inside sysroot
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/lvm2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/lvm2.py b/sos/plugins/lvm2.py
index dd10fa75..c6262315 100644
--- a/sos/plugins/lvm2.py
+++ b/sos/plugins/lvm2.py
@@ -37,7 +37,7 @@ class Lvm2(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
lvmdump_opts = "-a -m"
cmd = lvmdump_cmd % (lvmdump_opts,
self.get_cmd_output_path(name="lvmdump"))
- self.add_cmd_output(cmd)
+ self.add_cmd_output(cmd, chroot=self.tmp_in_sysroot())
def setup(self):
# use locking_type 0 (no locks) when running LVM2 commands,