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