summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
92ffc08)
If an ISO doesn't support Secure Boot then the grub.cfg file doesn't
exist inside the efi.img, so we shouldn't continue with its execution.
Use search_file() instead which is unset if the file doesn't exist and
therefore execution gets skipped.
Follow up fix for commit
92ffc08bb28f73c
logging.critical("Fatal: %s", error)
sys.exit(1)
logging.critical("Fatal: %s", error)
sys.exit(1)
- grub_cfg = efi_mountpoint + "/boot/grub/grub.cfg"
+ grub_cfg = search_file("grub.cfg", efi_mountpoint + "/boot/grub/")
logging.debug("grub_cfg = %s" % grub_cfg)
if not grub_cfg:
logging.info(
logging.debug("grub_cfg = %s" % grub_cfg)
if not grub_cfg:
logging.info(