diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2015-01-26 00:04:15 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-07-08 17:05:21 +0100 |
commit | 4ae09ee0ed25d771cc6cc8a013837ed4c647b3ed (patch) | |
tree | 15dc75b2bda281caa0da6012624f261058499d42 | |
parent | 2ca9c74454699ba6ecad21d6b0c0809333d729aa (diff) | |
download | sos-4ae09ee0ed25d771cc6cc8a013837ed4c647b3ed.tar.gz |
[foreman] don't chroot if tmp is not inside sysroot
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/foreman.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 : |