X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=grml2usb;h=9a9bb2465c29d1fc6b61e64a70ccdfbdea288d84;hb=c224af2da1af4ef51fcc26fee35fadf8b9276e38;hp=9709ad5d692e56ae9b9cc7097be2da7781429d44;hpb=3d119415a53423cdc75f5ae9434bff713c0876be;p=grml2usb.git diff --git a/grml2usb b/grml2usb index 9709ad5..9a9bb24 100755 --- a/grml2usb +++ b/grml2usb @@ -612,7 +612,7 @@ def install_grub(device): proc.wait() if proc.returncode != 0: # raise Exception("error executing grub-install") - logging.critical("Fatal: error executing grub-install (please check FAQ)" % error) + logging.critical("Fatal: error executing grub-install (please check the grml2usb FAQ)" % error) cleanup() sys.exit(1) except CriticalException, error: @@ -959,6 +959,7 @@ def copy_system_files(grml_flavour, iso_mount, target): squashfs = search_file(grml_flavour + '.squashfs', iso_mount) if squashfs is None: logging.critical("Fatal: squashfs file not found") + raise CriticalException("error locating squashfs file") else: squashfs_target = target + '/live/' + grml_flavour + '/' execute(mkdir, squashfs_target) @@ -1173,8 +1174,12 @@ def install_iso_files(grml_flavour, iso_mount, device, target): return 0 elif not options.bootloaderonly: logging.info("Copying files. This might take a while....") - copy_system_files(grml_flavour, iso_mount, target) - copy_grml_files(iso_mount, target) + try: + copy_system_files(grml_flavour, iso_mount, target) + copy_grml_files(iso_mount, target) + except CriticalException, error: + logging.critical("Execution failed: %s", error) + sys.exit(1) if not options.skipaddons: if grml_flavour.endswith('-small'):