bugGNU GRUB - Bugs: bug #36771, grub-2.00: grub-mkimage: --memdisk...


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

bug #36771: grub-2.00: grub-mkimage: --memdisk overrides --prefix if comes later in arguments list

Submitted by:  Maxim Kammerer <mkdesu>
Submitted on:  Tue Jul 3 09:32:06 2012  
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: otherReproducibility: Every Time
Planned Release: None

Fri Apr 12 19:09:45 2013, comment #1:


Vladimir Serbinenko <phcoder>
Project Administrator
Tue Jul 3 09:32:06 2012, original submission:

Seems that this behavior should be either documented or fixed:

# grub-mkimage -O x86_64-efi -m memdisk.tar -p "(memdisk)/grub" -o BOOTx64.EFI memdisk tar
# strings -a BOOTx64.EFI | grep '(memdisk)'

# grub-mkimage -O x86_64-efi -p "(memdisk)/grub" -m memdisk.tar -o BOOTx64.EFI memdisk tar
# strings -a BOOTx64.EFI | grep '(memdisk)'

Relevant snippet from util/grub-mkimage.c:

case 'm':
if (arguments->memdisk)
free (arguments->memdisk);

arguments->memdisk = xstrdup (arg);

if (arguments->prefix)
free (arguments->prefix);

arguments->prefix = xstrdup ("(memdisk)/boot/grub");

Maxim Kammerer <mkdesu>


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 (Posted a comment)
  • -unavailable- added by mkdesu (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
    Fri Apr 12 19:09:45 2013phcoderStatusNone=>Fixed

    Back to the top

    Powered by Savane 3.1-cleanup1