FS#42334 - [grub] 2.02.beta2-2 grub-mkrescue expects efi.img when not available

Attached to Project: Arch Linux
Opened by Joseph Naegele (naegelejd) - Saturday, 11 October 2014, 18:41 GMT
Last edited by Christian Hesse (eworm) - Monday, 01 August 2016, 21:10 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Ronald van Haren (pressh)
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:

grub-mkrescue attempts to add EFI support to rescue images when no EFI support is available on system.


Steps to reproduce:
grub-mkrescue -o ~/rescue.iso

Output:

xorriso 1.3.8 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev 'stdio:/home/naegelejd/rescue.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 10.4g free
Added to ISO image: directory '/'='/tmp/grub.HPIFg6'
xorriso : UPDATE : 610 files added in 1 seconds
xorriso : FAILURE : Cannot find path '/efi.img' in loaded ISO image
xorriso : UPDATE : 610 files added in 1 seconds
xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE'


Additional info:
grub 1:2.02.beta2-4
xorriso 1.3.8
uname -a: Linux arch 3.16.4-1-ARCH #1 SMP PREEMPT Mon Oct 6 08:23:49 CEST 2014 i686 GNU/Linux

I compiled grub 2.02~beta2 and the resulting grub-mkrescue does not expect to find '/efi.img':

xorriso 1.3.8 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev 'stdio:/home/naegelejd/rescue.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 10.4g free
Added to ISO image: directory '/'='/tmp/grub.cLQzvj'
xorriso : UPDATE : 305 files added in 1 seconds
xorriso : UPDATE : 305 files added in 1 seconds
xorriso : NOTE : Copying to System Area: 512 bytes from file '/home/naegelejd/lib/grub/i386-pc/boot_hybrid.img'
ISO image produced: 2812 sectors
Written to medium : 2812 sectors at LBA 0
Writing to 'stdio:/home/naegelejd/rescue.iso' completed successfully.
This task depends upon

Closed by  Christian Hesse (eworm)
Monday, 01 August 2016, 21:10 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Install mtools, which is listed in optional dependencies.
Comment by Dan Krejsa (dank) - Friday, 06 February 2015, 22:37 GMT
To avoid the EFI use, the following may work:

grub-mkrescue -d /usr/lib/grub/i386-pc -o rescue.iso
Comment by Filip Szczepański (FreeFull) - Sunday, 26 April 2015, 22:15 GMT
grub-mkrescue depends on the mtools package in order to create efi.img, and fails when mtools isn't installed. mtools is currently marked as an optional dependency for grub, rather than a mandatory one.
Comment by Jyri Lautala (lautjy) - Monday, 19 October 2015, 20:16 GMT
Filip solved this for me on Debian Jessie: "apt-get install mtools".
Please verify for Arch.

Comment by Ian (zerathidune) - Wednesday, 04 November 2015, 05:05 GMT
I can confirm that installing mtools fixes the problem for me.

Loading...