Summary: | =sys-boot/grub-2.02_beta2-r8 GRUB_PLATFORMS="efi-64": grub-install fails with "efibootmgr: option requires an argument -- 'd'" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tomáš Mózes <hydrapolic> |
Component: | [OLD] Unspecified | Assignee: | Mike Gilbert <floppym> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | alexander, base-system, chutzpah, lekto, ostroffjh |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://savannah.gnu.org/bugs/index.php?46805 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | grub.log.xz |
Description
Tomáš Mózes
2015-12-21 08:32:21 UTC
I have two disks - /dev/sda and /dev/sdb in software raid (mdadm). > efibootmgr: EFI variables are not supported on this system.
Do you have efivarfs mounted? openrc and systemd should do this automatically if your kernel has it enabled.
# grep /var/sys/firmware/efi/efivars /proc/self/mounts
(In reply to Mike Gilbert from comment #2) > # grep /var/sys/firmware/efi/efivars /proc/self/mounts Sorry that should be: # grep /sys/firmware/efi/efivars /proc/self/mounts Also, where is your EFI system partition mounted? Hello Mike, 1) I don't see efivars mounted. 2) Since this was my first efi install, it's not installed the best way. The whole /boot is under raid (/dev/sda1 and /dev/sdb1) as a vfat filesystem. This machine was installed like a year ago, it worked back then, seems like a combination of grub/efibootmgr somewhat got broken because grub does not pull in the "-d" parameter to efibootmgr (--disk). Seems like: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1466150 Can you attach a debug log? You can generate it like this: grub2-install --target=x86_64-efi --debug > grub-install.log 2>&1 I suspect you will need to ask grub upstream for help on this, but I can take a look at the log anyway. Created attachment 420296 [details]
grub.log.xz
Output of:
grub2-install --target=x86_64-efi --efi-directory=/boot/efi --debug /dev/sda
(In reply to Tomáš Mózes from comment #7) > grub2-install --target=x86_64-efi --efi-directory=/boot/efi --debug /dev/sda Just FYI, the "/dev/sda" on the end of your command line does not mean anything when calling grub2-install --target=x86_64-efi. You can drop that and you will get the same result. Anyway, yes, it seems like mdraid is confusing grub2-install here. You will need to seek help upstream. Thanks Mike for the help, will try upstream. |