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

Submitted by:  adrian15 <adrian15sgd>
Submitted on:  Fri 09 Jan 2015 12:34:19 AM UTC  
 
Category: TerminalSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: 2.02~beta1Reproducibility: 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 14 Feb 2016 07:47:49 AM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1