Open arximboldi opened 6 years ago
I just tried a fresh installation of nixos-unstable
, which includes the systemd 237
, and the problem persists. :(
I also experience this. As such I cannot update the initrd and have to manually mount my root partition in a rescue shell via a kernel parameter.
@mfiano someone just mentioned this workaround in the related systemd
bug: https://github.com/systemd/systemd/issues/5806#issuecomment-370148547
@arximboldi That someone he was referring to was me :) To get rid of the error on the terminal when doing a switch, you can set the boot parameter systemd.gpt_auto=0
as well
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
This still happens to me on a Raspberry Pi 4 ZFS root install with systemd 250. I'm not sure if this is a problem of NixOS really. Maybe the sensible thing would be to disable systemd-gpt-auto-generator by default. NixOS generates mount points explicitly itself, I don't think the systemd generator is useful in the general case.
Issue description
I have a system with UEFI boot that, when changing the NixOs configuration with
nixos-rebuild switch
prints the following error:After that the new configuration is effective, but after reboot, the system boots to the old configuration. There is no way to boot directly into the new configuration, because the switch failed to upgrade the boot partition.
Steps to reproduce
configuration.nix
nix-rebuild switch
. At some point towards the end, we can see the error in the terminal:systemd-gpt-auto-generator[1765]: Failed to dissect: Input/output error
.Possible solutions
The problem has been acknowledged and fixed upstream in
systemd
https://github.com/systemd/systemd/issues/5806 A fix exists insystemd
version237
.Severity
The problem makes NixOs unusable on affected systems (in my case, an Intel Compute Card). I have tried using GRUB instead without success, since this is a UEFI-only machine. Grub in Efi mode did not work either.
I am a bit desperate, I love NixOs and want to use it here :cry: