bugGNU GRUB - Bugs: bug #43957, Run commands from grub-mkrescue...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #43957: Run commands from grub-mkrescue are not checked

Submitter:  adrian15 <adrian15sgd>
Submitted:  Fri 09 Jan 2015 12:34:19 AM UTC
   
 
Category:  Terminal Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  2.02~beta1
Release:  Reproducibility:  Every Time
Planned Release:  None

Fri 09 Jan 2015 12:34:19 AM UTC, original submission:  

Introduction
============

The original bug was:

xorriso : FAILURE : Cannot find path '/efi.img' in loaded ISO image
when:
grub-mkrescue --output=/tmp/prueba.iso
is run.

Actual bug
===========

grub-mkrescue runs: mformat, mcopy and xorriso. What makes the error above is not mformat and mcopy executables being installed.

I'm not sure if they are formally requisites for grub but I would encourage you not to just run these executables and ignore them failing but failing the full grub-mkrescue execution and explaining that it was one of the executables fault.

You can find the blaming lines at: 704, 705 and 870.

E.g. http://git.savannah.gnu.org/cgit/grub.git/tree/util/grub-mkrescue.c?id=bac5d1a64ab4191058a8fd4c05f6b3b339e249e7#n704


grub_util_exec ((const char * []) { "mformat", "-C", "-f", "2880", "-L", "16", "-i",
    efiimgfat, "::", NULL });

Requisites
==========

Make sure mformat and mcopy are not executables in your path. Either by removing or by renaming them.

(In Debian) make sure you install grub efi binary packages (grub-efi-amd64-bin) so that an EFI image is built.

How to test
============

# grub-mkrescue --output=/tmp/prueba.iso

What happens
============
xorriso : FAILURE : Cannot find path '/efi.img' in loaded ISO image

What should have happened
=========================
High level) ISO file is build Ok.
Low level) grub-mkrescue complains when mformat or mcopy executions give an error.

Other improvements
==================
1) grub-mkrescue should also complain if xorriso execution cannot be performed.

2) Check if mformat and mcopy executables are documented as requisites. If they are not please document them.

adrian15 <adrian15sgd>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by adrian15sgd (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-14 phcoder StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code