|
|
0cd6dc |
From 29cc867b49dd3cc9ec365580ae9b127e837460b6 Mon Sep 17 00:00:00 2001
|
|
|
0cd6dc |
From: "Bryn M. Reeves" <bmr@redhat.com>
|
|
|
0cd6dc |
Date: Mon, 26 Jan 2015 00:02:35 +0000
|
|
|
0cd6dc |
Subject: [PATCH 67/93] [dmraid] don't chroot if tmp is not inside sysroot
|
|
|
0cd6dc |
|
|
|
0cd6dc |
To dump metadata dmraid needs to chdir to the temporary archive
|
|
|
0cd6dc |
directory. Don't attempt to chroot into sysroot if the temporary
|
|
|
0cd6dc |
directory is not a subdirectory of it.
|
|
|
0cd6dc |
|
|
|
0cd6dc |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
0cd6dc |
---
|
|
|
0cd6dc |
sos/plugins/dmraid.py | 3 ++-
|
|
|
0cd6dc |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
0cd6dc |
|
|
|
0cd6dc |
diff --git a/sos/plugins/dmraid.py b/sos/plugins/dmraid.py
|
|
|
0cd6dc |
index b7e2d0d..73cd7a1 100644
|
|
|
0cd6dc |
--- a/sos/plugins/dmraid.py
|
|
|
0cd6dc |
+++ b/sos/plugins/dmraid.py
|
|
|
0cd6dc |
@@ -39,6 +39,7 @@ class Dmraid(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
|
|
|
0cd6dc |
self.add_cmd_output("dmraid -%s" % (opt,))
|
|
|
0cd6dc |
if self.get_option("metadata"):
|
|
|
0cd6dc |
metadata_path = self.get_cmd_output_path("metadata")
|
|
|
0cd6dc |
- self.add_cmd_output("dmraid -rD", runat=metadata_path)
|
|
|
0cd6dc |
+ self.add_cmd_output("dmraid -rD", runat=metadata_path,
|
|
|
0cd6dc |
+ chroot=self.tmp_in_sysroot())
|
|
|
0cd6dc |
|
|
|
0cd6dc |
# vim: et ts=4 sw=4
|
|
|
0cd6dc |
--
|
|
|
0cd6dc |
1.9.3
|
|
|
0cd6dc |
|