From 4ae09ee0ed25d771cc6cc8a013837ed4c647b3ed Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 26 Jan 2015 00:04:15 +0000 Subject: [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 9d1cbada..363b9d6a 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 -g -q -a -d %s" % (cmd, path)) + self.add_cmd_output("%s -g -q -a -d %s" % (cmd, path), + chroot=self.tmp_in_sysroot()) # vim: set et ts=4 sw=4 : -- cgit