X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=grml-live;h=8ff93f94f0e55bb2a91e5efb2f59ad3760e16f7b;hb=f684e9577f54be351e2c3dcdbc4414101433bb10;hp=956f8b4aa0402dc40325873bc5998d7b67da0cb4;hpb=b139bfc533a62c3d9dd33cf60ca3320ebff73088;p=grml-live-grml.git diff --git a/grml-live b/grml-live index 956f8b4..8ff93f9 100755 --- a/grml-live +++ b/grml-live @@ -176,12 +176,13 @@ else umount $CHROOT_TARGET/sys 2>/dev/null || /bin/true [ -n "$MIRROR_DIRECTORY" ] && umount "${CHROOT_TARGET}/${MIRROR_DIRECTORY}" # notice: 'fai dirinstall' does not seem to exit appropriate -> - # we need better error handling - if [ -r "$CHROOT_TARGET"/etc/grml_cd ] ; then - echo " [*] Finished execution of stage 'fai dirinstall'" - else + if grep -q 'dpkg: error processing' /var/log/fai/dirinstall/$HOSTNAME/software.log || \ + grep -q 'FAILED with exit code' /var/log/fai/dirinstall/$HOSTNAME/shell.log ; then echo " [!] There was an error during execution of stage 'fai dirinstall'" + echo " Check out /var/log/fai/dirinstall/$HOSTNAME/... for details" exit 1 + else + echo " [*] Finished execution of stage 'fai dirinstall'" fi fi # }}}