diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2022-02-09 19:45:27 +0100 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2022-02-09 14:30:56 -0500 |
commit | a43124e1f6217107838eed4d70339d100cbbc77a (patch) | |
tree | 5383f2b8199d5659b9cade90811d4bc76d7e8a75 | |
parent | ead8d48d12c84b88dee981efceb9c80dce7af418 (diff) | |
download | sos-a43124e1f6217107838eed4d70339d100cbbc77a.tar.gz |
[policies] Set fallback to None sysroot
9596473 commit added a regression allowing to set sysroot to None
when running sos report on a regular system (outside a container). In
such a case, we need to fallback to '/' sysroot.
Resolves: #2846
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/policies/distros/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/policies/distros/__init__.py b/sos/policies/distros/__init__.py index f3c1de11..9048f1c4 100644 --- a/sos/policies/distros/__init__.py +++ b/sos/policies/distros/__init__.py @@ -78,7 +78,7 @@ class LinuxPolicy(Policy): if sysroot: self.sysroot = sysroot else: - self.sysroot = self._container_init() + self.sysroot = self._container_init() or '/' self.init_kernel_modules() |