summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mkinitcpio4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 54d0c82..d3a3b41 100644
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -149,12 +149,15 @@ if [ "${HAS_MODULES}" == "y" ]; then
add_file "/tmp/lib/modules/${KERNELVERSION}/modules.symbols" "/lib/modules/${KERNELVERSION}/modules.symbols"
fi
+status=0
if [ "x$GENIMG" != "x" ]; then
echo -n ":: Generating image '${GENIMG}'..."
if ! gen_init_cpio ${FILELIST} | gzip -9 > "${GENIMG}"; then
echo "FAILED"
+ status=1
else
echo "SUCCESS"
+ status=0
fi
if [ "x${SAVELIST}" == "x" ]; then
@@ -165,4 +168,5 @@ else
fi
[ -e "${MODULE_FILE}" ] && rm "${MODULE_FILE}"
[ -e "/tmp/${MODULEDIR}/" ] && rm -rf /tmp/${MODULEDIR}/
+exit $status
#vim:set ft=sh ts=4 sw=4 noet: