I’m having trouble with grub2 when running
sudo nixos-rebuild switch, getting these errors:
building Nix... building the system configuration... updating GRUB 2 menu... lsblk: /dev/mapper/no*[0-9]: not a block device lsblk: /dev/mapper/raid*[0-9]: not a block device lsblk: /dev/mapper/disks*[0-9]: not a block device Found Windows Boot Manager on /dev/nvme0n1p3@/EFI/Microsoft/Boot/bootmgfw.efi installing the GRUB 2 boot loader on /dev/disk/by-label/boot... Installing for i386-pc platform. /nix/store/5mvk29ha0y7rv20da3rk739w736s9gza-grub-2.04/sbin/grub-install: warning: File system `fat' doesn't support embedding. /nix/store/5mvk29ha0y7rv20da3rk739w736s9gza-grub-2.04/sbin/grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. /nix/store/5mvk29ha0y7rv20da3rk739w736s9gza-grub-2.04/sbin/grub-install: error: will not proceed with blocklists. /nix/store/0yhyyya13q6aw83km9lq23zc6i95bkcf-install-grub.pl: installation of GRUB on /dev/disk/by-label/boot failed
I have a different hdd with windows installed in my pc, which shows up on the grub menu, more strange however is that I’m only able to select 14 generations in the grub menu.
these are all the settings I have in my configuration.nix:
# Use the systemd-boot EFI boot loader. boot.loader.grub.enable = true; boot.loader.grub.version = 2; #boot.loader.grub.configurationLimit = 5; boot.loader.grub.device = "/dev/disk/by-label/boot"; boot.loader.systemd-boot.enable = true; boot.loader.grub.useOSProber = true;
thanks for the help!