bugGNU GRUB - Bugs: bug #39591, grub-mkconfig fails on btrfs raid


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

bug #39591: grub-mkconfig fails on btrfs raid

Submitted by:  Florian Scandella <fscan>
Submitted on:  Sun 28 Jul 2013 03:29:53 PM UTC  
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

Sun 28 Jul 2013 03:29:53 PM UTC, original submission:

using grub-2.00.5043-3 from arch linux testing.

grub-mkconfig line 131:
GRUB_DEVICE="`${grub_probe} --target=device /`"

on a btrfs raid GRUB_DEVICE now holds a list of devices. this fails in several places when generating the grub.cfg.
for example the next line will fail:

GRUB_DEVICE_UUID="`${grub_probe} --device ${GRUB_DEVICE} --target=fs_uuid 2> /dev/null`" || true

a solution would be to change this to:

GRUB_DEVICE_UUID="`${grub_probe} --target=fs_uuid / 2> /dev/null`" || true

and use GRUB_DEVICE_UUID instead of GRUB_DEVICE everywhere if set.

another quick fix would be:

GRUB_DEVICE="`${grub_probe} --target=device / | head -n 1`"

to only look at the first returned device.

Florian Scandella <fscan>


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 fscan (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
    Mon 14 Oct 2013 04:30:59 PM UTCphcoderStatusNone=>Fixed

    Back to the top

    Powered by Savane 3.1-cleanup