NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.65k stars 13.8k forks source link

GRUB: error: couldn't find the chunk descriptor #150025

Open ptman opened 2 years ago

ptman commented 2 years ago

Describe the bug

After upgrade from NixOS 21.05 to 21.11 GRUB fails to boot

Steps To Reproduce

  1. nix-channel --add https://nixos.org/channels/nixos-21.11-small nixos
  2. nix-channel --update
  3. nixos-rebuild switch
  4. reboot
  5. grub doesn't get me far enough to pick an older configuration

Expected behavior

NixOS booting.

Screenshots

grub

Additional context

The NixOS installation is fully encrypted, including /boot. But this worked before with 21.05, so what broke in 21.11?

Notify maintainers

@samueldr

ptman commented 2 years ago

Ah, didn't get it in the screenshot, but I think this is as close to the root cause as I can find:

grub rescue> ls (lvm/crvg-rpool)/boot

error: couldn't find the chunk descriptor.
grub rescue>
ptman commented 2 years ago

https://serverfault.com/questions/1065935/grub-rescue-on-ubuntu-18-04-with-btrfs-partition this is almost the only reference for that error message

ptman commented 2 years ago

nixos-enter followed by nixos-rebuild --install-bootloader from install media worked. But it didn't work the first time, or on every try after that. How can it be non-deterministic?