-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
nixos/systemd-boot: fix systemd-boot-builder refusing to update #175611
nixos/systemd-boot: fix systemd-boot-builder refusing to update #175611
Conversation
Ping and sorry for the noise, @mweinelt |
What is it with those length checks anyway? What are you trying to port? I think we can just rely on that last
|
I tried to implement what that compare_product function does. I really don't know what's the purpose, I just wanted to copy the functionality and failed. |
The upstream functions returns a tristate (-1, 0, 1) while we return a bool. Our function is also semantically different, which is fine. If you can't come up with a reason to keep the length checks I'm for dropping them. When should we update?
When shouldn't we update?
That's basically only updating when |
I agree, will update the PR tomorrow. It's unlikely that anyone is hurt by the current state because only updates are affected and the old bootloader was obviously good enough for the system. |
Handling of the string length condition in should_update was broken, as evident with the log message > leaving systemd-boot 246 in place (250.4 is not newer) Discussion with @mweinelt came to the conclusion that Python's "<" operator already does what we need, so the should_update function can be dropped. Fixes a30de3b
3a65710
to
ff24f48
Compare
Successfully created backport PR #175728 for |
Handling of the string length condition in should_update
was broken, as evident with the log message
when updating an old NixOS system.
Fixes a30de3b
Sorry, I goofed up following the code in
bootctl.c