Skip to content

Commit

Permalink
fix(dracut-init.sh): add missing hostonly code in the inst_multiple f…
Browse files Browse the repository at this point in the history
…unction

It seems that commit 4ef45f13 forgot
to add the code to handle the hostonly parameter in the inst_multiple function.
  • Loading branch information
aafeijoo-suse authored and johannbg committed Sep 29, 2022
1 parent 0661a6a commit e2fdb30
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dracut-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,12 @@ inst_symlink() {
}

inst_multiple() {
local _ret
if "$DRACUT_INSTALL" ${dracutsysrootdir:+-r "$dracutsysrootdir"} ${initdir:+-D "$initdir"} -a ${loginstall:+-L "$loginstall"} ${DRACUT_RESOLVE_DEPS:+-l} ${DRACUT_FIPS_MODE:+-f} "$@"; then
local _ret _hostonly_install
if [[ $1 == "-H" ]]; then
_hostonly_install="-H"
shift
fi
if "$DRACUT_INSTALL" ${dracutsysrootdir:+-r "$dracutsysrootdir"} ${initdir:+-D "$initdir"} -a ${loginstall:+-L "$loginstall"} ${DRACUT_RESOLVE_DEPS:+-l} ${DRACUT_FIPS_MODE:+-f} ${_hostonly_install:+-H} "$@"; then
return 0
else
_ret=$?
Expand Down

0 comments on commit e2fdb30

Please sign in to comment.