0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

grub module: suggest by-id paths for devices

Since they are more stable, their use should be encouraged over that of
potentially volatile identifiers like /dev/[sh]da.
This commit is contained in:
Linus Heckemann 2018-02-24 10:50:23 +00:00
parent a3c96fd4de
commit fd77a08b34

View file

@ -110,7 +110,7 @@ in
device = mkOption { device = mkOption {
default = ""; default = "";
example = "/dev/hda"; example = "/dev/disk/by-id/wwn-0x500001234567890a";
type = types.str; type = types.str;
description = '' description = ''
The device on which the GRUB boot loader will be installed. The device on which the GRUB boot loader will be installed.
@ -123,7 +123,7 @@ in
devices = mkOption { devices = mkOption {
default = []; default = [];
example = [ "/dev/hda" ]; example = [ "/dev/disk/by-id/wwn-0x500001234567890a" ];
type = types.listOf types.str; type = types.listOf types.str;
description = '' description = ''
The devices on which the boot loader, GRUB, will be The devices on which the boot loader, GRUB, will be
@ -135,8 +135,8 @@ in
mirroredBoots = mkOption { mirroredBoots = mkOption {
default = [ ]; default = [ ];
example = [ example = [
{ path = "/boot1"; devices = [ "/dev/sda" ]; } { path = "/boot1"; devices = [ "/dev/disk/by-id/wwn-0x500001234567890a" ]; }
{ path = "/boot2"; devices = [ "/dev/sdb" ]; } { path = "/boot2"; devices = [ "/dev/disk/by-id/wwn-0x500009876543210a" ]; }
]; ];
description = '' description = ''
Mirror the boot configuration to multiple partitions and install grub Mirror the boot configuration to multiple partitions and install grub
@ -178,7 +178,7 @@ in
devices = mkOption { devices = mkOption {
default = [ ]; default = [ ];
example = [ "/dev/sda" "/dev/sdb" ]; example = [ "/dev/disk/by-id/wwn-0x500001234567890a" "/dev/disk/by-id/wwn-0x500009876543210a" ];
type = types.listOf types.str; type = types.listOf types.str;
description = '' description = ''
The path to the devices which will have the GRUB MBR written. The path to the devices which will have the GRUB MBR written.