[VERIFICATION FOCAL]
In focal, systemd is shipped as follow:
ls -altr /usr/bin/systemd-resolve lrwxrwxrwx 1 root root 10 Jan 6 20:47 /usr/bin/systemd-resolve -> resolvectl
With the proposed package of sosreport, the systemd plugin prefer 'resolvectl' over 'systemd-resolve' as it should.
# sos.log 2021-02-18 14:21:53,815 INFO: [plugin:systemd] added cmd output 'resolvectl status' 2021-02-18 14:21:53,815 INFO: [plugin:systemd] added cmd output 'resolvectl statistics' 2021-02-18 14:21:56,377 INFO: [plugin:systemd] collecting output of 'resolvectl status' 2021-02-18 14:21:56,391 INFO: [plugin:systemd] collecting output of 'resolvectl statistics'
ls -altr sos_commands/systemd/resolvectl_stat* -rw-r--r-- 1 root root 1806 Feb 18 14:21 sos_commands/systemd/resolvectl_status -rw-r--r-- 1 root root 391 Feb 18 14:21 sos_commands/systemd/resolvectl_statistics
Each command run well and collected the desired output.
If I intentionally remove of the equation and make 'resolvectl' no longer exist. The plugin is taking 'systemd-resolve' as fallback.
# sos.log 2021-02-18 14:25:30,816 INFO: [plugin:systemd] collecting output of 'systemd-resolve --status' 2021-02-18 14:25:30,830 INFO: [plugin:systemd] collecting output of 'systemd-resolve --statistics'
[VERIFICATION FOCAL]
In focal, systemd is shipped as follow:
ls -altr /usr/bin/ systemd- resolve systemd- resolve -> resolvectl
lrwxrwxrwx 1 root root 10 Jan 6 20:47 /usr/bin/
With the proposed package of sosreport, the systemd plugin prefer 'resolvectl' over 'systemd-resolve' as it should.
# sos.log
2021-02-18 14:21:53,815 INFO: [plugin:systemd] added cmd output 'resolvectl status'
2021-02-18 14:21:53,815 INFO: [plugin:systemd] added cmd output 'resolvectl statistics'
2021-02-18 14:21:56,377 INFO: [plugin:systemd] collecting output of 'resolvectl status'
2021-02-18 14:21:56,391 INFO: [plugin:systemd] collecting output of 'resolvectl statistics'
ls -altr sos_commands/ systemd/ resolvectl_ stat* systemd/ resolvectl_ status systemd/ resolvectl_ statistics
-rw-r--r-- 1 root root 1806 Feb 18 14:21 sos_commands/
-rw-r--r-- 1 root root 391 Feb 18 14:21 sos_commands/
Each command run well and collected the desired output.
If I intentionally remove of the equation and make 'resolvectl' no longer exist. The plugin is taking 'systemd-resolve' as fallback.
# sos.log
2021-02-18 14:25:30,816 INFO: [plugin:systemd] collecting output of 'systemd-resolve --status'
2021-02-18 14:25:30,830 INFO: [plugin:systemd] collecting output of 'systemd-resolve --statistics'