projects
/
grml2usb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Exit if installing grub fails
[grml2usb.git]
/
grml2usb
diff --git
a/grml2usb
b/grml2usb
index
2c28990
..
9709ad5
100755
(executable)
--- 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:
"--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()
except CriticalException, error:
logging.critical("Fatal: %s" % error)
cleanup()