From: Antonio Alvarez Feijoo Date: Tue, 16 Aug 2022 06:23:19 +0000 (+0200) Subject: fix(dracut-init.sh): add missing hostonly code in the inst_multiple function X-Git-Tag: 058~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2fdb30b56305aed9d3be32f394352c7c3fdbcef;p=thirdparty%2Fdracut.git fix(dracut-init.sh): add missing hostonly code in the inst_multiple function It seems that commit https://github.com/dracutdevs/dracut/commit/4ef45f13 forgot to add the code to handle the hostonly parameter in the inst_multiple function. --- diff --git a/dracut-init.sh b/dracut-init.sh index 4ec600fb0..6ef3fc8bb 100755 --- a/dracut-init.sh +++ b/dracut-init.sh @@ -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=$?