-
Notifications
You must be signed in to change notification settings - Fork 401
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
fix(systemd-255): handle systemd-pcrphase -> systemd-pcrextend #2586
Conversation
Pardon the noise; my testing of my previous patch was lackluster; this was verified properly. |
changes: - fix pcr{phrase -> extend} rename and reduction. Renamed patch isn't yet merged, PR is at: dracutdevs/dracut#2586 - add systemd-executor (systemd flat out fails without it) This was already merged upstream. Signed-off-by: Brian Harring <[email protected]>
The binary systemd-pcrphase was renamed to systemd-pcrextend in systemd 255, but the backing units were all left named systemd-pcrphase. Fixes: dracutdevs#2583 Signed-off-by: Brian Harring <[email protected]>
changes: - fix pcr{phrase -> extend} rename and reduction. Renamed patch isn't yet merged, PR is at: dracutdevs/dracut#2586 - add systemd-executor (systemd flat out fails without it) This was already merged upstream. Signed-off-by: Brian Harring <[email protected]>
changes: - fix pcr{phrase -> extend} rename and reduction. Renamed patch isn't yet merged, PR is at: dracutdevs/dracut#2586 - add systemd-executor (systemd flat out fails without it) This was already merged upstream. Closes: https://bugs.gentoo.org/919766 Signed-off-by: Brian Harring <[email protected]>
changes: - fix pcr{phrase -> extend} rename and reduction. Renamed patch isn't yet merged, PR is at: dracutdevs/dracut#2586 - add systemd-executor (systemd flat out fails without it) This was already merged upstream. Closes: https://bugs.gentoo.org/919766 Signed-off-by: Brian Harring <[email protected]> Closes: #34246 Signed-off-by: Mike Gilbert <[email protected]>
@dtardon what you asked for is addressed, and this is still horked in mainline. Is there anything blocking this being merged? |
That doesn't depend on myself... I'm just a contributor; I don't have the rights to merge PRs. |
Interesting there are quite few dragons there in systemd v255 release for downstream enterprise distro's and downstream that support multiple init systems anyway there is no such thing as "just a rename" when upstream changes a executable name. The scope of this changes requires A simple optional inclusion will not be merged to address this upstream systemd change. |
Sorry, but what?! Meta modules are useful for alternative impls. of a concept, but this isn't that. It's a simple rename of an internal binary. The service name remains the same, which is what really matters, because it's user-visible. There will be just one of the binaries on the system at any point, hence a simple optional inclusion already provides all the migration path that's needed. Anything else is an overkill. (Even if a system--and consequently an initrd generated on it--ended up containing both binaries somehow, it wouldn't matter anyway. The old
No, it isn't. This is an internal binary, not supposed to be called by users. Hence this rename is transparent to users. It only affects |
I agree with @dtardon here. For reference: systemd/systemd@32295fa |
Relevant section of the dracut wiki - https://github.com/dracutdevs/dracut/wiki/Dracut-development#compatibility
|
Looking at that wikipage it's quite evident that I need to start restricting who can create and edit wiki pages. |
Modules are based upon the upstream configuration options so correct dependency chain can be kept downstream ( which is what this module systemd-pcrphase was based upon ) If those configuration options change upstream ( which most certainly did with this change ) those changes will be reflected here as well. So to be perfectly clear on the matter this wont get merged in any other form than in a new module ( systemd-pcrextend ) and the existing module being renamed and turned into a meta module to provide a clean upgrade/migration path for downstream so this PR can be update to reflect that or it can be closed. |
Closing this out. Feel free to cut your own fix. |
Have you even read what I had written? |
I understand that this PR is closed now, but IMHO Linux distributions will end up taking this PR, so perhaps we should try to address the shellcheck issue with it even if it is not landed here.
|
In systemd 255 systemd-pcrphase was renamed to systemd-pcrextend; there was no other change to it, just the rename.
Unit scripts are still named systemd-pcrphase, just the underlying binary got renamed. Thus adapt the module
to check for either binary.
Changes
Adds awareness of systemd-pcrextend binary allowing systemd-pcrphase module to work with systemd-255.
Checklist
// copy/rename of existing code, and existing lacks tests...
Fixes #2583