Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLES11 with UEFI: Creating ISO image fails with "Cannot make bootable EFI image of GRUB2" #2513

Closed
abbbi opened this issue Nov 11, 2020 · 6 comments
Assignees
Labels
fixed / solved / done not ReaR / invalid The root cause is not in the ReaR code or ReaR is misused. support / question

Comments

@abbbi
Copy link
Contributor

abbbi commented Nov 11, 2020

Hi,

it seems newer rear versions (from version 2.5 on) have problems creating an bootable ISO image on SLES11 with UEFI BIOS, even with ebiso installed and

ISO_MKISOFS_BIN=/usr/bin/ebiso

Option set in local.conf.
The last working version seems to be rear-2.4, with this version im able to successfully create an bootable ISO image.
From version 2.5 on up to master, creating the iso image fails with:

ERROR: Cannot make bootable EFI image of GRUB2 (neither grub-mkstandalone nor grub2-mkstandalone found)
Some latest log messages since the last called script 250_populate_efibootimg.sh:
  2020-11-11 03:38:26.521755943 Including output/ISO/Linux-i386/250_populate_efibootimg.sh
  2020-11-11 03:38:26.529112634 Copying kernel
@abbbi
Copy link
Contributor Author

abbbi commented Nov 11, 2020

Logfile with debug output from current master:

rear-linux-st0j.log

@abbbi
Copy link
Contributor Author

abbbi commented Nov 11, 2020

Not exacly having the background, but in older versions the function simply returned, now it is issuing an error:

-        Log "Did not find grub-mkimage (cannot build bootx86.efi)"
-        return
+        # This build_bootx86_efi function is only called in output/ISO/Linux-i386/250_populate_efibootimg.sh
+        # which runs only if UEFI is used so that we simply error out here if we cannot make a bootable EFI image of GRUB2
+        # (normally a function should not exit out but return to its caller with a non-zero return code):
+        Error "Cannot make bootable EFI image of GRUB2 (neither grub-mkstandalone nor grub2-mkstandalone found)"
+    fi

reverting this change i was able to create a bootable iso image for SLES11.

Note: SLES11 is using elilo:

Using '/boot/efi/efi/SuSE/elilo.efi' as UEFI bootloader file

@jsmeix jsmeix added needs sponsorship This issue will not get solved on a voluntary base by ReaR upstream. support / question labels Nov 11, 2020
@jsmeix
Copy link
Member

jsmeix commented Nov 11, 2020

@abbbi
why do you need newer ReaR versions on SLES11?
What is missing in ReaR 2.4 for disaster recovery on SLES11?
I would assume that anyone who runs SLES11 should meanwhile
since a longer time have set up his particular disaster recovery procedure
that works in his environment for his SLES11 systems.
Cf. the section "Version upgrades with Relax-and-Recover" in
https://en.opensuse.org/SDB:Disaster_Recovery

In general see
https://github.com/rear/rear/blob/master/doc/rear-release-notes.txt
(excerpts):

ReaR-2.6 is supported on the following Linux based operating systems:
...
  SLES 12 and 15
  openSUSE Leap 15.x
...
ReaR-2.6 dropped official support for the following Linux based operating
systems:
...
  SLES < 12
  openSUSE Leap 42.x and before (i.e. openSUSE <= 13)
  openSUSE Tumbleweed
...
ReaR-2.6 may still work for SLES 11 and openSUSE Leap 42.x or even earlier
openSUSE versions but it is no longer sufficiently well tested there so
arbitrary regressions could appear.
...
If you require support for unsupported Linux operating systems you must
acquire a ReaR support contract.

@abbbi
Copy link
Contributor Author

abbbi commented Nov 11, 2020

@abbbi
why do you need newer ReaR versions on SLES11?

im sorry i have completely missed the statement in the release notes as it seems :(
Well, we have some Customers which still have HANA on SLES11 and came across this issue while updating the REAR version. We will stick with the last known working version then.

@jsmeix jsmeix added fixed / solved / done not ReaR / invalid The root cause is not in the ReaR code or ReaR is misused. and removed needs sponsorship This issue will not get solved on a voluntary base by ReaR upstream. labels Nov 11, 2020
@jsmeix jsmeix self-assigned this Nov 11, 2020
@jsmeix
Copy link
Member

jsmeix commented Nov 11, 2020

Argh!
Customers who seem to blindly upgrade their working ReaR version.
"Yeah let's use latest greatest!"
"Why?"
"Yeah 'cause latest is greatest ever yeah!"
;-)

@abbbi
thank you for the issue report (so I know where newer ReaR fails on SLES11)
and for your explanation of the reason behind!

@jsmeix jsmeix closed this as completed Nov 11, 2020
@pcahyna
Copy link
Member

pcahyna commented Nov 13, 2020

FYI here is the discussion about dropping distribution support due to this change: #2199 (comment) . At that time I thought that distributions using GRUB legacy (not GRUB 2) would not be affected by the change, but apparently I was wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed / solved / done not ReaR / invalid The root cause is not in the ReaR code or ReaR is misused. support / question
Projects
None yet
Development

No branches or pull requests

3 participants