]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(rt): use singular argument for timeout value
authorPaul Charlton <techguru@byiq.com>
Sun, 30 Jun 2024 18:37:31 +0000 (01:37 +0700)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Sun, 30 Jun 2024 22:26:19 +0000 (18:26 -0400)
use singular argument for timeout value -- plural values create an invalid cryptsetup command line

Fixes: https://github.com/dracut-ng/dracut-ng/issues/424
Signed-off-by: Paul Charlton <techguru@byiq.com>
modules.d/90crypt/cryptroot-ask.sh

index ad96a972a07b5c701d191276a1294e3b5f201759..901c9a3138ac518582326f5052616df6bf990bf7 100755 (executable)
@@ -176,7 +176,7 @@ fi
 
 if [ $ask_passphrase -ne 0 ]; then
     luks_open="$(command -v cryptsetup) $cryptsetupopts luksOpen"
-    _timeout=$(getargs "rd.luks.timeout")
+    _timeout=$(getarg "rd.luks.timeout")
     _timeout=${_timeout:-0}
     ask_for_password --ply-tries 5 \
         --ply-cmd "$luks_open -T1 $device $luksname" \