From 534eb7fe732ec366292ec582ec2891ef0648ffcb Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 26 Jan 2015 00:11:15 +0000 Subject: [lvm2] don't chroot if tmp is not inside sysroot Signed-off-by: Bryn M. Reeves --- sos/plugins/lvm2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit