-
Notifications
You must be signed in to change notification settings - Fork 97
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
Warning: systemd-boot failure with newer nixpkgs version #248
Comments
Yep, found this out the hard way after doing a
To fix it, downloading full installer and doing a full nixos-install isn't actually needed, you can do it using nothing but UEFI shell:
Edit: made an issue in systemd: systemd/systemd#35026 |
same DO NOT UPDATE nixpkgs |
Thank you so much for providing a detailed fix guide. This update effectively broke ALL my builds and rolling back had no effect. |
Here is a TEMPORARY WORKAROUND patch that reverts the problematic commit, while the issue is fixed upstream, if anyone wants to use latest nixpkgs and can't/doesn't want to pin systemd to stable (e.g. because it would require a whole separate flake input and overlays and stuff). Whilst I tested it on my personal systems, it's important to stress that it's a temporary workaround made in like 30 minutes, so please backup everything before applying it. You can apply it to I would still strongly recommend pinning |
Thank you for handling this so well! |
I've pinned systemd to a working version in my fork now. Thanks for the suggestion! Commit is here: oliverbestmann@97ff3d5 It might not be the most beautiful way to do it, but it works ;) |
Sorry for being quiet on this, I have been short on time recently. I will ship a revert of the problematic patch soon, and get back to package upgrading in a bit. Due to where we are in the NixOS release cycle upstream Nixpkgs likely can't do much. |
A revert patch just landed in Nixpkgs upstream, maybe this can be integrated here until it's in unstable/24.11? NixOS/nixpkgs#355290 |
This is fixed (with low overhead) in the latest release. Thanks all for the work on this. |
So its safe to update again if I am on nixpkgs-unstable? |
Yes. A patch to systemd will be applied, so systemd will be compiled from source, but it should boot again. |
Is there a way to copy only the two relevant files ( Context:
and
|
You still have the macOS partition right? |
thanks yeah that might work |
Just did a
Note that this is 256.8, while the affected systems version was 256.7. Looks like Here's the 256.7..256.8 log: systemd/systemd@v256.7...v256.8 which includes systemd/systemd@a9d9db7 from systemd/systemd#35149 which fixes systemd/systemd#35026 So 256.8 has a fix, which causes the revert patch to not apply. @tpwrules Maybe this repo should be updated to assert systemd is 256.7 before applying the revert patch. |
Oh thanks @oliverbestmann, I missed #252 during my digging 😓 |
Not an actual issue for this repository, just a warning for everyone who updates their nixpkgs regulary:
I've just reverted an update of nixpkgs on my fork, as it led to a totally unbootable system: oliverbestmann@5d723ce
I needed to do a recovery
nixos-install
as described here: https://github.com/tpwrules/nixos-apple-silicon/blob/main/docs/uefi-standalone.md#rescueThe text was updated successfully, but these errors were encountered: