about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorNadrieril <Nadrieril@users.noreply.github.com>2020-06-07 17:43:15 +0100
committerGitHub <noreply@github.com>2020-06-07 18:43:15 +0200
commite4f445008e0ecbd69d06ad3f5a5531ee53954b31 (patch)
tree2dd5195104833b51080801bfe441a33a19f0e1b6 /nixos
parenta1bdb4dd8431ea1c16f569bcc6ac5994f2edff10 (diff)
downloadnixlib-e4f445008e0ecbd69d06ad3f5a5531ee53954b31.tar
nixlib-e4f445008e0ecbd69d06ad3f5a5531ee53954b31.tar.gz
nixlib-e4f445008e0ecbd69d06ad3f5a5531ee53954b31.tar.bz2
nixlib-e4f445008e0ecbd69d06ad3f5a5531ee53954b31.tar.lz
nixlib-e4f445008e0ecbd69d06ad3f5a5531ee53954b31.tar.xz
nixlib-e4f445008e0ecbd69d06ad3f5a5531ee53954b31.tar.zst
nixlib-e4f445008e0ecbd69d06ad3f5a5531ee53954b31.zip
boot: fix order of arguments for `hasPrefix` (#89751)
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/stage-1.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix
index 9bf3228d1ad6..d551466f52eb 100644
--- a/nixos/modules/system/boot/stage-1.nix
+++ b/nixos/modules/system/boot/stage-1.nix
@@ -584,7 +584,7 @@ in
       { assertion = !config.boot.loader.supportsInitrdSecrets ->
           all (source:
             builtins.isPath source ||
-            (builtins.isString source && hasPrefix source builtins.storeDir))
+            (builtins.isString source && hasPrefix builtins.storeDir source))
           (attrValues config.boot.initrd.secrets);
         message = ''
           boot.loader.initrd.secrets values must be unquoted paths when