summary refs log tree commit diff
path: root/modules/system/boot/luksroot.nix
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2012-06-27 09:43:54 -0400
committerShea Levy <shea@shealevy.com>2012-06-27 09:43:54 -0400
commitbb5d2d53fea606a05a417c1c95b8feb4a073a57b (patch)
tree7bc70fbdd51441b1c7ffc329ff20089c0367760b /modules/system/boot/luksroot.nix
parent061a9988405e280757c4eea3730647ada90edb36 (diff)
downloadnixpkgs-bb5d2d53fea606a05a417c1c95b8feb4a073a57b.tar
nixpkgs-bb5d2d53fea606a05a417c1c95b8feb4a073a57b.tar.gz
nixpkgs-bb5d2d53fea606a05a417c1c95b8feb4a073a57b.tar.bz2
nixpkgs-bb5d2d53fea606a05a417c1c95b8feb4a073a57b.tar.lz
nixpkgs-bb5d2d53fea606a05a417c1c95b8feb4a073a57b.tar.xz
nixpkgs-bb5d2d53fea606a05a417c1c95b8feb4a073a57b.tar.zst
nixpkgs-bb5d2d53fea606a05a417c1c95b8feb4a073a57b.zip
try isn't used, so use the more compatct seq 10
Diffstat (limited to 'modules/system/boot/luksroot.nix')
-rw-r--r--modules/system/boot/luksroot.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/boot/luksroot.nix b/modules/system/boot/luksroot.nix
index edbf11214da..0e28a882da5 100644
--- a/modules/system/boot/luksroot.nix
+++ b/modules/system/boot/luksroot.nix
@@ -11,7 +11,7 @@ let
     # available as a function.
     if ! test -e ${device}; then
         echo -n "waiting 10 seconds for device ${device} to appear..."
-        for try in $(seq 0 9); do
+        for try in $(seq 10); do
             sleep 1
             if test -e ${device}; then break; fi
             echo -n .