From: Harald Hoyer Date: Wed, 31 Mar 2021 08:59:19 +0000 (+0200) Subject: fix(nvdimm): shellcheck regression X-Git-Tag: 054~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af3cd22425c86251c9dcb404dce3554774e9c510;p=thirdparty%2Fdracut.git fix(nvdimm): shellcheck regression `_provider_dirs` should not have been quoted, because it should expand to multiple arguments. Just remove the whole variable and add those arguments. Fixes: https://github.com/dracutdevs/dracut/issues/1273 --- diff --git a/modules.d/90nvdimm/module-setup.sh b/modules.d/90nvdimm/module-setup.sh index d123cb45b..8d3361081 100755 --- a/modules.d/90nvdimm/module-setup.sh +++ b/modules.d/90nvdimm/module-setup.sh @@ -19,10 +19,11 @@ depends() { installkernel() { # Directories to search for NVDIMM "providers" (firmware drivers) # These modules call "nvdimm_bus_register()". - local _provider_dirs='=drivers/nvdimm =drivers/acpi =arch/powerpc' - #instmods() will take care of hostonly - dracut_instmods -o -s nvdimm_bus_register "$_provider_dirs" + dracut_instmods -o -s nvdimm_bus_register \ + '=drivers/nvdimm' \ + '=drivers/acpi' \ + '=arch/powerpc' } # called by dracut