[Bug 1229738] Re: grub doesn't boot with efi and md raid root
Anatoli
1229738 at bugs.launchpad.net
Sun Jan 26 23:48:23 UTC 2014
Hi! I have the same problem: install everything and boot in EFI mode,
then I see "error: efidisk read error" and I get grub> prompt. I found a
fix not mentioned here: after the install, boot from a LiveCD, install
boot-repair and in its options unselect "SecureBoot" option. [I don't
know what's wrong with the SecureBoot, but I won't investigate it
further. Also, I don't know if the new grubx64.efi file the boot-repair
writes to the EFI partition boots in SecureBoot or not.] Proceed with
the commands it offers (when it asks about buggy-kernel, say No) and
reboot. More details here:
http://ubuntuforums.org/showthread.php?t=2201239.
I confirm that the patch proposed by Dick Porter executed as Thomas C.
explains also fixes my problem, though the "efidisk read error" flashes
for an instant before it starts to boot.
I also tried the solution of creating a grub.cfg file in the EFI
partition (proposed by Andy Sayler) and it didn't work, though Andy had
a slightly different setup: /boot and / on the same RAID array. I tried
some obvious tweaks but with no luck.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1229738
Title:
grub doesn't boot with efi and md raid root
Status in “grub2” package in Ubuntu:
Triaged
Bug description:
dick at reordberend:/tmp$ lsb_release -rd
Description: Ubuntu 12.04.3 LTS
Release: 12.04
dick at reordberend:/tmp$ apt-cache policy grub-efi-amd64
grub-efi-amd64:
Installed: 1.99-21ubuntu3.10
Candidate: 1.99-21ubuntu3.10
Installed 12.04.3 LTS Server using md raid1 for root partition on x86-64 box using EFI boot.
Grub installs its EFI app correctly, and it launches at boot. However, grub can't find the root partition. Inspecting grub's config shows that it has prefix and root set to the EFI boot partition. Manually setting those to the raid1 root partition at the grub prompt and running normal allows booting to proceed correctly (ie following the instructions at http://www.gnu.org/software/grub/manual/html_node/GRUB-only-offers-a-rescue-shell.html works).
In EFI mode, grub seems to expect its grub.cfg and modules to be in the EFI partition. However, they are all installed in the root filesystem. The problem can be solved in the grub-install script by giving an embedded config to grub-mkimage (http://www.gnu.org/software/grub/manual/html_node/Embedded-configuration.html). grub-install already has support for this, but it fails if the root partition is raided.
Inside grub-install, if devabstraction_module is set (and with md as
the root partition it will be) then config_opt_file is never set. The
attached patch solves the bug for me but will doubtless require
refining to be generally applicable.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1229738/+subscriptions
More information about the foundations-bugs
mailing list