return proper value in function dracut_install
dracut_install should return the real return value, so module install function can detect the install failure. Such as below in 99base: dracut_install switch_root || dfatal "Failed to install switch_root" Signed-off-by: Dave Young <dyoung@redhat.com>master
parent
7e0d508002
commit
06e9f8870a
|
@ -563,9 +563,12 @@ if [[ $DRACUT_INSTALL ]]; then
|
||||||
}
|
}
|
||||||
|
|
||||||
dracut_install() {
|
dracut_install() {
|
||||||
|
local ret
|
||||||
#dinfo "initdir=$initdir $DRACUT_INSTALL -l $@"
|
#dinfo "initdir=$initdir $DRACUT_INSTALL -l $@"
|
||||||
$DRACUT_INSTALL ${initdir+-D "$initdir"} -a ${DRACUT_RESOLVE_DEPS+-l} ${DRACUT_FIPS_MODE+-H} "$@"
|
$DRACUT_INSTALL ${initdir+-D "$initdir"} -a ${DRACUT_RESOLVE_DEPS+-l} ${DRACUT_FIPS_MODE+-H} "$@"
|
||||||
(($? != 0)) && derror $DRACUT_INSTALL ${initdir+-D "$initdir"} -a ${DRACUT_RESOLVE_DEPS+-l} ${DRACUT_FIPS_MODE+-H} "$@" || :
|
ret=$?
|
||||||
|
(($ret != 0)) && derror $DRACUT_INSTALL ${initdir+-D "$initdir"} -a ${DRACUT_RESOLVE_DEPS+-l} ${DRACUT_FIPS_MODE+-H} "$@" || :
|
||||||
|
return $ret
|
||||||
}
|
}
|
||||||
|
|
||||||
inst_library() {
|
inst_library() {
|
||||||
|
|
Loading…
Reference in New Issue