mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
replace find with fd
This commit is contained in:
parent
462cd6a991
commit
5393fc1f0a
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ fi
|
|||
_KERNELVERSION="$(_kver "${_KERNEL}")"
|
||||
_MOD_DIR="/lib/modules/${_KERNELVERSION}"
|
||||
[[ -d "${_MOD_DIR}" ]] || _abort "${_MOD_DIR} is not a valid kernel module directory!"
|
||||
_ALL_MODS="$(find "${_MOD_DIR}" -name '*.ko*' 2>"${_NO_LOG}")"
|
||||
_ALL_MODS="$(fd -t f -u '.ko' . "${_MOD_DIR}" 2>"${_NO_LOG}")"
|
||||
_BUILD_DIR="$(_init_rootfs "${_KERNELVERSION}" "${_TARGET_DIR}")" || exit 1
|
||||
_ROOTFS="${_TARGET_DIR:-${_BUILD_DIR}/root}"
|
||||
if (( ${#_HOOKS[*]} == 0 )); then
|
||||
|
|
Loading…
Reference in a new issue