aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/devicemapper.py2
-rw-r--r--sos/plugins/yum.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/sos/plugins/devicemapper.py b/sos/plugins/devicemapper.py
index 08fb3866..0c15dce6 100644
--- a/sos/plugins/devicemapper.py
+++ b/sos/plugins/devicemapper.py
@@ -26,7 +26,7 @@ class devicemapper(sos.plugintools.PluginBase):
def do_lvmdump(self):
"""Collects raw metadata directly from the PVs using dd
"""
- self.collectExtOutput("lvmdump -d %s" % os.path.join(self.cInfo['dstroot'],"lvmdump"))
+ self.collectExtOutput("lvmdump -d '%s'" % os.path.join(self.cInfo['dstroot'],"lvmdump"))
def setup(self):
self.collectExtOutput("/sbin/dmsetup info -c")
diff --git a/sos/plugins/yum.py b/sos/plugins/yum.py
index d669917a..3e35aaa3 100644
--- a/sos/plugins/yum.py
+++ b/sos/plugins/yum.py
@@ -51,6 +51,8 @@ class yum(sos.plugintools.PluginBase):
self.collectExtOutput("/usr/bin/yum list")
if self.getOption("yumdebug") and self.isInstalled('yum-utils'):
+ # RHEL6+ alternative for this whole function:
+ # self.collectExtOutput("/usr/bin/yum-debug-dump '%s'" % os.path.join(self.cInfo['dstroot'],"yum-debug-dump"))
ret, output, rtime = self.callExtProg("/usr/bin/yum-debug-dump")
try:
self.collectExtOutput("/bin/zcat %s" % (output.split()[-1],))