NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.76k stars 13.88k forks source link

grub install in /dev/disk/by-id/ gives error #8030

Closed magnetophon closed 9 years ago

magnetophon commented 9 years ago

When I build with:

boot.loader.grub.device = "/dev/disk/by-id/${diskID}";

I get:

installing the GRUB 2 boot loader on /dev/disk/by-id/usb-USB2.0_CardReader_SD_606569746801-0:0...
Installing for i386-pc platform.
/nix/store/xmr10limshywjl81bbp8jcyd8fjrfbca-grub-2.02-git-2015-04-24/sbin/grub-install: error: cannot find a GRUB drive for /dev/disk/by-id/usb-USB2.0_CardReader_SD_606569746801-0:0.  Check your device.map.
/nix/store/sv3wfwpwiwqpspkl8kyp2qjzg5yf943h-install-grub.pl: installation of GRUB on /dev/disk/by-id/usb-USB2.0_CardReader_SD_606569746801-0:0 failed
warning: error(s) occured while switching to the new configuration

The install seems to go fine, but it's pretty unnerving.

wkennington commented 9 years ago

is that a gpt table without a bios boot partition?

magnetophon commented 9 years ago

sorry, pebcac.