#18 Ignore grub2-install errors if they are expected
Merged by ngompa. Opened by pgreco.
pgreco/appliance-tools grub2-efi-nofail  into  master

With the inclusion of
https://github.com/rhboot/grub2/commit/a1be2d182af27afb6db0e7fcf9d5ebf40086b2f6
grub2-install refuses to run in efi environments, making
appliance-create fail erroneously. The approach here is to skip this
error if expected, while still calling grub2-install to try to keep the
functionality as close as possible with older versions

I only included aarch64 and x86_64 checks because those are the ones I could test, but I'm expecting similar fixes needed on other arches.

Edit: Added untested arches

rebased onto 2a16aeb71489904aa04b9290698000d8950ba245

Can you please add it to all grub2 efi arches handled here?

rebased onto bc03c7227fcfb4f5ebe05de2c31705c0eb94b6e7

Can you please add it to all grub2 efi arches handled here?

Done

Pull-Request has been merged by ngompa

Metadata