From 061a9988405e280757c4eea3730647ada90edb36 Mon Sep 17 00:00:00 2001 From: Mathijs Kwik Date: Sun, 24 Jun 2012 10:06:28 +0200 Subject: [PATCH] luks root: c-style for-loop -> seq The ash shell no longer supports this bash-specific syntax. This left systems that use luksroot unable to boot. --- modules/system/boot/luksroot.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/boot/luksroot.nix b/modules/system/boot/luksroot.nix index ff11d284ef86..edbf11214daf 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 = 0; try < 10; try++)); do + for try in $(seq 0 9); do sleep 1 if test -e ${device}; then break; fi echo -n .