]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dracut-init.sh): instmods: wrong variable name
authorMarcos Mello <marcosfrm@gmail.com>
Sun, 6 Nov 2022 15:43:47 +0000 (12:43 -0300)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Mon, 7 Nov 2022 08:36:21 +0000 (09:36 +0100)
It worked most of the time because `dracut-install -o` returns 0 in normal circumstances.

dracut-init.sh

index aba42bb31bd613da8c166f2921dacb6949d5723b..30de6f6cbf20a6d5bb060dce83392ba2a624349f 100755 (executable)
@@ -1138,7 +1138,7 @@ instmods() {
             -m "$@"
     fi
 
-    [[ "$optional" ]] && return 0
+    [[ "$_optional" ]] && return 0
     return $_ret
 }