diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2015-01-26 00:11:15 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-07-08 17:05:21 +0100 |
commit | 534eb7fe732ec366292ec582ec2891ef0648ffcb (patch) | |
tree | b8dc221620a7882d12b3622898982ad3778d4b55 | |
parent | b34ea0c6ea5449bbd2f4f9624e1644dc01b07e9d (diff) | |
download | sos-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.py | 2 |
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, |