aboutsummaryrefslogtreecommitdiffstats
path: root/sos.spec
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2017-05-22 16:30:35 +0100
committerBryn M. Reeves <bmr@redhat.com>2017-05-22 16:30:35 +0100
commit4df4897146d4f2a0589a8b32532f912f1ea2ed8c (patch)
treec2349b0ef88481745978f14fad139dbeb86d9c30 /sos.spec
parent7da0d24619928690f4999ffc1693b643b612f130 (diff)
downloadsos-4df4897146d4f2a0589a8b32532f912f1ea2ed8c.tar.gz
[policies/redhat] make missing 'filesystem' package non-fatal
On Red Hat systems, we use the version of the installed filesystem' package to enable handling of UsrMove[1] in the PATH used when running commands from sos. If the package is not present (e.g. because of a broken system configuration, rpm timeout, corrupt database or other cause), previous versions would fail immediately. In this situation there was no way for the user to attempt a complete run (short of fixing the problem related to the 'filesystem' package). Now that the timeout has been lengthened for this command, make the UsrMove determination a bit more robust to prevent users from being unable to run sos at all: - If RPM fails entirely, exit (plugin enablement tests will fail) - If RPM succeeds but 'filesystem' is missing assume UsrMove (this is true for all supported Red Hat distros today) - Otherwise apply the normal PATH logic. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'sos.spec')
0 files changed, 0 insertions, 0 deletions