diff --git a/usr/bin/archboot-cpio.sh b/usr/bin/archboot-cpio.sh index 95b575a13..131d09540 100755 --- a/usr/bin/archboot-cpio.sh +++ b/usr/bin/archboot-cpio.sh @@ -12,7 +12,7 @@ if [[ -z "${1}" ]]; then _usage fi _root_check -_parameters +_parameters "$@" #shellcheck disable="SC1090" . "${_CONFIG}" 2>"${_NO_LOG}" || _abort "Failed to read ${_CONFIG} configuration file" if [[ -z "${_KERNEL}" ]]; then diff --git a/usr/lib/archboot/cpio/cpio.sh b/usr/lib/archboot/cpio/cpio.sh index 12783db78..ff5347133 100644 --- a/usr/lib/archboot/cpio/cpio.sh +++ b/usr/lib/archboot/cpio/cpio.sh @@ -8,6 +8,7 @@ _CONFIG="" _CPIO=/usr/lib/archboot/cpio/hooks _GENERATE_IMAGE="" _TARGET_DIR="" +_ALL_MODS="$(find "${_MODULE_DIR}" -name '*.ko*' -print 2>"${_NO_LOG}")" _usage() { cat <"${_NO_LOG}" | grep -EZz "$@") + done < <(grep -EZz "$@" <<<${_ALL_MODS}) (( _COUNT )) }