Blame SOURCES/0066-cluster-handle-crm_report-with-sysroot.patch

0cd6dc
From 740b989dff68c8c7bbe58d685a2d925e359606ce Mon Sep 17 00:00:00 2001
0cd6dc
From: "Bryn M. Reeves" <bmr@redhat.com>
0cd6dc
Date: Mon, 26 Jan 2015 00:00:08 +0000
0cd6dc
Subject: [PATCH 66/93] [cluster] handle crm_report with --sysroot
0cd6dc
0cd6dc
Don't attempt to run crm_report in the chroot if tmp is not a
0cd6dc
subdirectory of sysroot.
0cd6dc
0cd6dc
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
0cd6dc
---
0cd6dc
 sos/plugins/cluster.py | 5 +++--
0cd6dc
 1 file changed, 3 insertions(+), 2 deletions(-)
0cd6dc
0cd6dc
diff --git a/sos/plugins/cluster.py b/sos/plugins/cluster.py
0cd6dc
index ecfaa7b..2e4ed0e 100644
0cd6dc
--- a/sos/plugins/cluster.py
0cd6dc
+++ b/sos/plugins/cluster.py
0cd6dc
@@ -104,8 +104,9 @@ class Cluster(Plugin, RedHatPlugin):
0cd6dc
                     "default" % self.get_option('crm_from'))
0cd6dc
 
0cd6dc
         crm_dest = self.get_cmd_output_path(name='crm_report')
0cd6dc
-        self.add_cmd_output('crm_report -S -d --dest %s --from "%s"'
0cd6dc
-                            % (crm_dest, crm_from))
0cd6dc
+        crm_cmd = 'crm_report -S -d --dest %s --from "%s"'
0cd6dc
+        self.add_cmd_output(crm_cmd % (crm_dest, crm_from),
0cd6dc
+                            chroot=self.tmp_in_sysroot())
0cd6dc
 
0cd6dc
     def do_lockdump(self):
0cd6dc
         dlm_tool = "dlm_tool ls"
0cd6dc
-- 
0cd6dc
1.9.3
0cd6dc