Grub error after nixpkgs update

After I updated nixpkgs and did nixos-rebuild switch an error appears:

updating GRUB 2 menu...
Undefined subroutine &main::rmtree called at /nix/store/z57lry92hrfwascb8masrz56lna7783z-install-grub.pl line 388.
Failed to install bootloader
warning: error(s) occurred while switching to the new configuration

Looks like the fix has been merged: install-grub: add missing rmtree by Mic92 · Pull Request #383269 · NixOS/nixpkgs · GitHub

It’ll take another day or two before it makes it to nixos-unstable.

2 Likes