mcoverlay-create.sh, mcoverlay-destroy.sh: Return -EINVAL on failure

Change-Id: I0561df33e8068327bf2d921c8facac7b18ac8866
This commit is contained in:
Masamichi Takagi
2018-07-02 13:02:49 +09:00
parent 854bc85602
commit f185be06eb
4 changed files with 28 additions and 6 deletions

View File

@@ -100,7 +100,13 @@ if grep mcctrl /proc/modules &>/dev/null; then
fi
# Remove mcoverlay if loaded
. ${SBINDIR}/mcoverlay-destroy.sh
${SBINDIR}/mcoverlay-destroy.sh
ret=$?
if [ $ret -ne 0 ]; then
echo "error: mcoverlay-destroy.sh" >&2
exit $ret
fi
# Remove SMP module
if grep ihk_smp_@ARCH@ /proc/modules &>/dev/null; then