diff options
author | danbst <abcz2.uprola@gmail.com> | 2019-07-14 13:46:10 +0300 |
---|---|---|
committer | danbst <abcz2.uprola@gmail.com> | 2019-07-14 13:46:10 +0300 |
commit | 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca (patch) | |
tree | 49c4e3646c960459328b09bcac5d7812d7a2b909 /nixos/modules/system | |
parent | 69920dafbffcd757acff23f659263ec4b952a017 (diff) |
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 4e4d14985b0..84753d77cc4 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}"; })); |