From 3d119415a53423cdc75f5ae9434bff713c0876be Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 4 May 2009 22:27:27 +0200 Subject: [PATCH] Exit if installing grub fails --- grml2usb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -- 2.1.4