[Nix-dev] Grub 1 vs 2 ?

Marc Weber marco-oweber at gmx.de
Tue Dec 15 05:59:01 CET 2009


I've rewritten the NixOS installation scripts. I'll post about this
later again. While doing so I noticed that nixos-install using grub
version 1 fails to boot.

Is it safe to set default to 2 ?
What will happen if you've used version 1 previously?

Probably you'll have to use

NIXOS_INSTALL_GRUB=1 nixos-rebuild boot or such?

Can we make this NIXOS_INSTALL_GRUB=1 explicit so that nobody get's hurt
by using grub 2 as default?

Can we find kind of
dd if=/dev/sda bs=1 count=512 | grep 'grub 1'
command to detect a grub version change ?

Marc Weber



More information about the nix-dev mailing list