diff options
author | danbst <abcz2.uprola@gmail.com> | 2019-08-05 14:03:38 +0300 |
---|---|---|
committer | danbst <abcz2.uprola@gmail.com> | 2019-08-05 14:03:38 +0300 |
commit | 0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3 (patch) | |
tree | 121d16875c362cecba39cee43a9602f71d870fe1 /nixos/modules/system | |
parent | 91bb646e98808d594b339d3386f7963a546ccfb4 (diff) | |
download | nixlib-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.tar nixlib-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.tar.gz nixlib-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.tar.bz2 nixlib-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.tar.lz nixlib-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.tar.xz nixlib-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.tar.zst nixlib-0f8596ab3f05321e36d9bd53ea7f048b7f0b62e3.zip |
mass replace "flip map -> forEach"
See `forEach`-introduction commit. ``` rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /forEach /g' ```
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/loader/grub/grub.nix | 2 |
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 4e4d14985b0d..eca9dad64222 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}"; } - ] ++ flip map args.devices (device: { + ] ++ forEach args.devices (device: { assertion = device == "nodev" || hasPrefix "/" device; message = "GRUB devices must be absolute paths, not ${device} in ${args.path}"; })); |