[Nix-dev] Grub Install Failure when using boot.loader.devices = [ "/dev/sda" "/dev/sdb" ];

Ricardo M. Correia rcorreia at wizy.org
Thu Jul 3 11:13:13 CEST 2014


Hi Roger,

Not sure if it will help, but can you try:

NIXOS_INSTALL_GRUB=1 nixos-rebuild switch

?



On Wed, Jul 2, 2014 at 12:59 PM, Roger Qiu <roger.qiu at polycademy.com> wrote:

> Hello everybody,
>
> When I run with:
>
> ```
> boot.loader.device = "/dev/sda"
> ```
>
> or
>
> ```
> boot.loader.device = "/dev/sdb"
> ```
>
> It works.
>
> But when I try to install Grub on both using:
>
> ```
> boot.loader.devices = [ "/dev/sda" "/dev/sdb" ];
> ```
>
> This is basically the abridged error message:
>
> ```
> Path '/boot/grub' is not readable by GRUB on boot. Installation is
> impossible. Aborting. /nix/store/bv..etc...install-grub.pl: installation
> of GRUB on /dev/sdb failed
> ```
>
> Any ideas?
>
> Additional information:
>
> The sda and sdb are formatted via GPT using sgdisk. I used this command:
>
> ```
> sgdisk -n 1:2048:+30MB -c 1:"BIOS Boot Partition" -t 1:ef02 /dev/sda
> begin=`sgdisk -f /dev/sda`
> sgdisk -n 2:$begin:0 -c 2:"Data Partition" -t 2:8300 /dev/sda
> ```
>
> And did it for both sda and sdb.
>
> Thanks,
> Roger
>
> --
> Founder of Polycademy & SnapSearch
> http://polycademy.com
> https://snapsearch.io
> +61420925975
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140703/89515937/attachment-0001.html 


More information about the nix-dev mailing list