New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefer resolvectl over systemd-resolve #2385
Conversation
From the downstream bug report at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979264 Hi, systemd-resolve has been replaced by the resolvectl tool in systemd v239
systemd-resolve is nowadays merely a symlink pointing at resolvectl and Your package uses the old name like this:
Attached is a patch which uses resolvectl instead. |
c2e84cab3a resolvectl: rename systemd-resolve to resolvectl $ git describe --contains c2e84cab3a resolvectl has been first introduced in v239 and onwards in systemd. Wearing my ubuntu hat. Ubuntu has systemd version lt and gt than 239.
While Debian look to be gt v239:
Since sosreport is fault tolerant and move on if the command doesn't work nor exist. |
Are you planning on updating sosreport for those old Ubuntu releases? |
|
I can carry a patch if needed for Bionic, but I'm afraid other distros might have the same constraint. |
what about something like this?
|
Same boat, need to maintain the deprecated symlink.
This, but not using shutil in the plugin directly. Instead, something like this using the helpers within resolvectl = 'resolvectl' if self.is_executable('resolvectl') else 'systemd-resolve'
[...]
"%s status" % resolvectl,
"%s statistics" % resolvectl,
], pred=SoSPredicate(self, services=["systemd-resolved"])) On that note, the |
The service name was not changed, only the |
Updated as per @TurboTurtle 's suggestions. |
Oh, my fault there. For some reason I always forget that |
a557940
to
a8caa40
Compare
The latter is a deprecated compat symlink. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979264 Signed-off-by: Michael Biebl <biebl@debian.org>
The PR mentioned |
I'm sorry it took me a few tries. But as said, my Python is rusty and I'm not really familiar with sosreport. That said, thanks for the help so far. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Tested and working as expected with systemd lt & gt v239 on Ubuntu.
The latter is a deprecated compat symlink.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979264