mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
remove sed
This commit is contained in:
parent
5d89e7e346
commit
fdcf9ca1a2
1 changed files with 4 additions and 4 deletions
|
@ -172,15 +172,15 @@ _install_mods() {
|
|||
# Checking kernel module dependencies:
|
||||
# first try, pull in the easy modules
|
||||
#shellcheck disable=SC2086
|
||||
_MOD_DEPS="$(modinfo -k "${_KERNELVERSION}" -F depends ${_MODS} 2>"${_NO_LOG}" | sed -e 's#,# #g' | tr " " "\n" | sort -u) \
|
||||
$(modinfo -k "${_KERNELVERSION}" -F softdep ${_MODS} 2>"${_NO_LOG}" | sed -e 's#.*: # #g' | tr " " "\n" | sort -u)"
|
||||
_MOD_DEPS="$(modinfo -k "${_KERNELVERSION}" -F depends ${_MODS} 2>"${_NO_LOG}" | tr "," "\n" | sort -u) \
|
||||
$(modinfo -k "${_KERNELVERSION}" -F softdep ${_MODS} 2>"${_NO_LOG}" | tr ".*: " "\n" | sort -u)"
|
||||
_DEP_COUNT=0
|
||||
# next tries, ensure to catch all modules with depends
|
||||
while true; do
|
||||
#shellcheck disable=SC2046,SC2086
|
||||
_MOD_DEPS="$(echo ${_MOD_DEPS} \
|
||||
$(modinfo -k "${_KERNELVERSION}" -F depends ${_MOD_DEPS} 2>"${_NO_LOG}" | sed -e 's#,# #g' | tr " " "\n" | sort -u) \
|
||||
$(modinfo -k "${_KERNELVERSION}" -F softdep ${_MOD_DEPS} 2>"${_NO_LOG}" | sed -e 's#.*: # #g' | tr " " "\n" | sort -u) \
|
||||
$(modinfo -k "${_KERNELVERSION}" -F depends ${_MOD_DEPS} 2>"${_NO_LOG}" | tr "," "\n" | sort -u) \
|
||||
$(modinfo -k "${_KERNELVERSION}" -F softdep ${_MOD_DEPS} 2>"${_NO_LOG}" | tr ".*: " "\n" | sort -u) \
|
||||
| tr " " "\n" | sort -u)"
|
||||
_DEP_COUNT2="$(wc -w <<< "${_MOD_DEPS}")"
|
||||
[[ "${_DEP_COUNT}" == "${_DEP_COUNT2}" ]] && break
|
||||
|
|
Loading…
Reference in a new issue