diff options
-rw-r--r-- | mkinitcpio | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: |