diff options
Diffstat (limited to 'dracut-functions.sh')
-rwxr-xr-x | dracut-functions.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/dracut-functions.sh b/dracut-functions.sh index c0a12cd0..fbe06338 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -622,7 +622,7 @@ inst_symlink() { (($? != 0)) && derror $DRACUT_INSTALL ${initdir+-D "$initdir"} ${DRACUT_RESOLVE_DEPS+-l} ${DRACUT_FIPS_MODE+-H} "$@" || : } -dracut_install() { +inst_multiple() { local ret #dinfo "initdir=$initdir $DRACUT_INSTALL -l $@" $DRACUT_INSTALL ${initdir+-D "$initdir"} -a ${DRACUT_RESOLVE_DEPS+-l} ${DRACUT_FIPS_MODE+-H} "$@" @@ -631,6 +631,10 @@ dracut_install() { return $ret } +dracut_install() { + inst_multiple "$@" +} + inst_library() { [[ -e ${initdir}/"${2:-$1}" ]] && return 0 # already there [[ -e $1 ]] || return 1 # no source @@ -689,7 +693,7 @@ inst_rule_programs() { } fi - [[ $_bin ]] && dracut_install "$_bin" + [[ $_bin ]] && inst_binary "$_bin" done fi if grep -qE 'RUN[+=]=?"[^ "]+' "$1"; then @@ -704,7 +708,7 @@ inst_rule_programs() { } fi - [[ $_bin ]] && dracut_install "$_bin" + [[ $_bin ]] && inst_binary "$_bin" done fi if grep -qE 'IMPORT\{program\}==?"[^ "]+' "$1"; then @@ -878,7 +882,7 @@ inst_libdir_file() { done done fi - [[ $_files ]] && dracut_install $_files + [[ $_files ]] && inst_multiple $_files } |