From 75936281f6b9d3ca1bdc024f8a68b3e0dc57778e Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 26 Jan 2015 00:04:15 +0000 Subject: [PATCH 68/93] [foreman] don't chroot if tmp is not inside sysroot Signed-off-by: Bryn M. Reeves --- sos/plugins/foreman.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py index 896add1..dfc97e1 100644 --- a/sos/plugins/foreman.py +++ b/sos/plugins/foreman.py @@ -27,7 +27,9 @@ class Foreman(Plugin, RedHatPlugin): def setup(self): cmd = "foreman-debug" + path = self.get_cmd_output_path(name="foreman-debug") - self.add_cmd_output("%s -q -a -d %s" % (cmd, path)) + self.add_cmd_output("%s -q -a -d %s" % (cmd, path), + chroot=self.tmp_in_sysroot()) # vim: et ts=4 sw=4 -- 1.9.3