X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=9709ad5d692e56ae9b9cc7097be2da7781429d44;hp=2c28990b815cb7cb37ba8bcf441068c294492749;hb=3d119415a53423cdc75f5ae9434bff713c0876be;hpb=53bba3b8ae759ddf264ecd25d4c350c536e5a27b;ds=sidebyside diff --git a/grml2usb b/grml2usb index 2c28990..9709ad5 100755 --- a/grml2usb +++ b/grml2usb @@ -611,7 +611,10 @@ def install_grub(device): "--root-directory=%s" % device_mountpoint, device], stdout=file(os.devnull, "r+")) proc.wait() if proc.returncode != 0: - raise Exception("error executing grub-install") + # raise Exception("error executing grub-install") + logging.critical("Fatal: error executing grub-install (please check FAQ)" % error) + cleanup() + sys.exit(1) except CriticalException, error: logging.critical("Fatal: %s" % error) cleanup()