dracut-lib.sh and the base module now does not have a knowledge
of oldroot and plymouth.
It improves the separation of concerns between the base module
and the shutdown module.
_rdshell_name=$2
action="Shutdown"
hook="shutdown-emergency"
- if type plymouth > /dev/null 2>&1; then
- plymouth --hide-splash
- elif [ -x /oldroot/bin/plymouth ]; then
- /oldroot/bin/plymouth --hide-splash
- fi
shift 2
fi
done
[ $_cnt -ge 40 ] && _check_shutdown final
+if type plymouth > /dev/null 2>&1; then
+ plymouth --hide-splash
+elif [ -x /oldroot/bin/plymouth ]; then
+ /oldroot/bin/plymouth --hide-splash
+fi
+
getarg 'rd.break=shutdown' && emergency_shell --shutdown shutdown "Break before shutdown"
case "$ACTION" in