summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-02-24 11:30:34 +0000
committerGitHub <noreply@github.com>2018-02-24 11:30:34 +0000
commitc0b652d6cd82947443ef5b091e8d1b09799ec769 (patch)
treeb9694a92d65ff5977ea5ff6b60b2ac4628efb7a3 /nixos/modules
parent9c065623d5129d1966aad73b2196a244d7759694 (diff)
parentfd77a08b340d8cee473a3c0543a2b801d6ec83e2 (diff)
downloadnixlib-c0b652d6cd82947443ef5b091e8d1b09799ec769.tar
nixlib-c0b652d6cd82947443ef5b091e8d1b09799ec769.tar.gz
nixlib-c0b652d6cd82947443ef5b091e8d1b09799ec769.tar.bz2
nixlib-c0b652d6cd82947443ef5b091e8d1b09799ec769.tar.lz
nixlib-c0b652d6cd82947443ef5b091e8d1b09799ec769.tar.xz
nixlib-c0b652d6cd82947443ef5b091e8d1b09799ec769.tar.zst
nixlib-c0b652d6cd82947443ef5b091e8d1b09799ec769.zip
Merge pull request #35461 from lheckemann/grub-by-id
grub module: suggest by-id paths for devices
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/system/boot/loader/grub/grub.nix10
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.