diff options
author | Linus Heckemann <git@sphalerite.org> | 2018-02-24 10:50:23 +0000 |
---|---|---|
committer | Linus Heckemann <git@sphalerite.org> | 2018-02-24 10:50:23 +0000 |
commit | fd77a08b340d8cee473a3c0543a2b801d6ec83e2 (patch) | |
tree | 676353b76591c8400b07d3744b46a07da8380660 /nixos/modules/system/boot/loader/grub | |
parent | a3c96fd4de3dc95a074919abce71620266d823b9 (diff) | |
download | nixlib-fd77a08b340d8cee473a3c0543a2b801d6ec83e2.tar nixlib-fd77a08b340d8cee473a3c0543a2b801d6ec83e2.tar.gz nixlib-fd77a08b340d8cee473a3c0543a2b801d6ec83e2.tar.bz2 nixlib-fd77a08b340d8cee473a3c0543a2b801d6ec83e2.tar.lz nixlib-fd77a08b340d8cee473a3c0543a2b801d6ec83e2.tar.xz nixlib-fd77a08b340d8cee473a3c0543a2b801d6ec83e2.tar.zst nixlib-fd77a08b340d8cee473a3c0543a2b801d6ec83e2.zip |
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.
Diffstat (limited to 'nixos/modules/system/boot/loader/grub')
-rw-r--r-- | nixos/modules/system/boot/loader/grub/grub.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix index 9056121fa7d1..0d83391de893 100644 --- a/nixos/modules/system/boot/loader/grub/grub.nix +++ b/nixos/modules/system/boot/loader/grub/grub.nix @@ -110,7 +110,7 @@ in device = mkOption { default = ""; - example = "/dev/hda"; + example = "/dev/disk/by-id/wwn-0x500001234567890a"; type = types.str; description = '' The device on which the GRUB boot loader will be installed. @@ -123,7 +123,7 @@ in devices = mkOption { default = []; - example = [ "/dev/hda" ]; + example = [ "/dev/disk/by-id/wwn-0x500001234567890a" ]; type = types.listOf types.str; description = '' The devices on which the boot loader, GRUB, will be @@ -135,8 +135,8 @@ in mirroredBoots = mkOption { default = [ ]; example = [ - { path = "/boot1"; devices = [ "/dev/sda" ]; } - { path = "/boot2"; devices = [ "/dev/sdb" ]; } + { path = "/boot1"; devices = [ "/dev/disk/by-id/wwn-0x500001234567890a" ]; } + { path = "/boot2"; devices = [ "/dev/disk/by-id/wwn-0x500009876543210a" ]; } ]; description = '' Mirror the boot configuration to multiple partitions and install grub @@ -178,7 +178,7 @@ in devices = mkOption { default = [ ]; - example = [ "/dev/sda" "/dev/sdb" ]; + example = [ "/dev/disk/by-id/wwn-0x500001234567890a" "/dev/disk/by-id/wwn-0x500009876543210a" ]; type = types.listOf types.str; description = '' The path to the devices which will have the GRUB MBR written. |