Skip to content

Commit e2fdb30

Browse files
aafeijoo-susejohannbg
authored andcommitted
fix(dracut-init.sh): add missing hostonly code in the inst_multiple function
It seems that commit 4ef45f13 forgot to add the code to handle the hostonly parameter in the inst_multiple function.
1 parent 0661a6a commit e2fdb30

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dracut-init.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,12 @@ inst_symlink() {
271271
}
272272

273273
inst_multiple() {
274-
local _ret
275-
if "$DRACUT_INSTALL" ${dracutsysrootdir:+-r "$dracutsysrootdir"} ${initdir:+-D "$initdir"} -a ${loginstall:+-L "$loginstall"} ${DRACUT_RESOLVE_DEPS:+-l} ${DRACUT_FIPS_MODE:+-f} "$@"; then
274+
local _ret _hostonly_install
275+
if [[ $1 == "-H" ]]; then
276+
_hostonly_install="-H"
277+
shift
278+
fi
279+
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
276280
return 0
277281
else
278282
_ret=$?

0 commit comments

Comments
 (0)