From e2fdb30b56305aed9d3be32f394352c7c3fdbcef Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Tue, 16 Aug 2022 08:23:19 +0200 Subject: [PATCH] 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. Reference:https://github.com/dracutdevs/dracut/commit/e2fdb30b56305aed9d3be32f394352c7c3fdbcef Conflict:NA --- dracut-init.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dracut-init.sh b/dracut-init.sh index 4ec600fb..6ef3fc8b 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=$? -- 2.23.0