[Nix-dev] Problem with grub2
Joachim Schiele
js at lastlog.de
Wed Jul 29 13:42:20 CEST 2015
the default boot loader ist grub2:
https://github.com/NixOS/nixpkgs/blob/release-14.12/nixos/modules/system/boot/loader/grub/grub.nix
version = mkOption {
default = 2;
example = 1;
type = types.int;
description = ''
The version of GRUB to use: <literal>1</literal> for GRUB
Legacy (versions 0.9x), or <literal>2</literal> (the
default) for GRUB 2.
'';
};
and you can use the devices attribute, show here:
devices = mkOption {
default = [];
example = [ "/dev/hda" ];
type = types.listOf types.str;
description = ''
The devices on which the boot loader, GRUB, will be
installed. Can be used instead of <literal>device</literal> to
install grub into multiple devices (e.g., if as softraid
arrays holding /boot).
'';
};
with an argument like that:
/dev/disk/by-uuid/4172ace9-f813-44dd-addf-77303526d768
boot.loader.grub = {
# Use grub 2 as boot loader.
enable = true;
version = 2;
# Define on which hard drive you want to install Grub.
device = "/dev/disk/by-uuid/4172ace9-f813-44dd-addf-77303526d768";
};
you can just ignore the disk labels with using uuid.
hope this helps you!
hf
On 29.07.2015 08:04, Fabian Boucsein wrote:
> Hello Nix hackers,
>
> when i try to install NixOS 14.12 with the minimal configuration
> provided by nixos-generate-config everything is fine until the
> installation of grub2. Grub tells me that there are multiple disk labels
> assigned to the device. When i look into /dev/disk/by-label i find one
> label for a partition. Is there a way to get rid of this disk labels? I
> tried it with parted but that brought no help. Is there a configuration
> option to to just use device names? I have not found a Nix configuration
> which tells nix to use devices instead of labels. By the way choosing
> grub1 is working fine. Choosing grub1 is working for me right now but i
> would like to use grub2 as my boot manager. Is there a way to get it
> running?
>
> Looking forward for any help.
>
> Yours sincerely,
> Fabian
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
More information about the nix-dev
mailing list