From b12ee558f5660073ad26415794570188e8a427b0 Mon Sep 17 00:00:00 2001 From: Marcos Mello Date: Sun, 6 Nov 2022 12:43:47 -0300 Subject: [PATCH] fix(dracut-init.sh): instmods: wrong variable name It worked most of the time because `dracut-install -o` returns 0 in normal circumstances. Reference:https://github.com/dracutdevs/dracut/commit/b12ee558f5660073ad26415794570188e8a427b0 Conflict:NA --- dracut-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut-init.sh b/dracut-init.sh index aba42bb3..30de6f6c 100755 --- a/dracut-init.sh +++ b/dracut-init.sh @@ -1138,7 +1138,7 @@ instmods() { -m "$@" fi - [[ "$optional" ]] && return 0 + [[ "$_optional" ]] && return 0 return $_ret } -- 2.23.0