about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authordanbst <abcz2.uprola@gmail.com>2019-08-05 14:01:45 +0300
committerdanbst <abcz2.uprola@gmail.com>2019-08-05 14:01:45 +0300
commit91bb646e98808d594b339d3386f7963a546ccfb4 (patch)
tree4390925c6087d284c11183193044835152f6cea5 /nixos/modules/system
parent3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca (diff)
downloadnixlib-91bb646e98808d594b339d3386f7963a546ccfb4.tar
nixlib-91bb646e98808d594b339d3386f7963a546ccfb4.tar.gz
nixlib-91bb646e98808d594b339d3386f7963a546ccfb4.tar.bz2
nixlib-91bb646e98808d594b339d3386f7963a546ccfb4.tar.lz
nixlib-91bb646e98808d594b339d3386f7963a546ccfb4.tar.xz
nixlib-91bb646e98808d594b339d3386f7963a546ccfb4.tar.zst
nixlib-91bb646e98808d594b339d3386f7963a546ccfb4.zip
Revert "mass replace "flip map -> foreach""
This reverts commit 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/loader/grub/grub.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix
index 84753d77cc4c..4e4d14985b0d 100644
--- a/nixos/modules/system/boot/loader/grub/grub.nix
+++ b/nixos/modules/system/boot/loader/grub/grub.nix
@@ -684,7 +684,7 @@ in
           assertion = if args.efiSysMountPoint == null then true else hasPrefix "/" args.efiSysMountPoint;
           message = "EFI paths must be absolute, not ${args.efiSysMountPoint}";
         }
-      ] ++ foreach args.devices (device: {
+      ] ++ flip map args.devices (device: {
         assertion = device == "nodev" || hasPrefix "/" device;
         message = "GRUB devices must be absolute paths, not ${device} in ${args.path}";
       }));