bugGNU GRUB - Bugs: bug #46805, grub 2.02_beta2 - grub-install...

 
 

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

bug #46805: grub 2.02_beta2 - grub-install fails with "efibootmgr: option requires an argument -- 'd'" on EFI with software raid 1

Submitter:  Tomas Mozes <hydrapolic>
Submitted:  Mon 04 Jan 2016 06:16:42 AM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  6 Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  2.02~beta1
Release:  Reproducibility:  Every Time
Planned Release:  2.02

Mon 04 Jan 2016 11:31:49 AM UTC, comment #2: 

# grub2-install --target=x86_64-efi --efi-directory=/boot/efi /dev/sda
Installing for x86_64-efi platform.
grub2-install: error: Can't find GRUB drive for mduuid/e77c5ec7b0f05413cb201669f728008a; unable to create EFI Boot Manager entry.

# mdadm --detail /dev/md1
/dev/md1:
        Version : 0.90
  Creation Time : Sat Jun 29 00:48:15 2013
     Raid Level : raid1
     Array Size : 487360 (476.02 MiB 499.06 MB)
  Used Dev Size : 487360 (476.02 MiB 499.06 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Mon Jan  4 12:30:54 2016
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : e77c5ec7:b0f05413:cb201669:f728008a
         Events : 0.18

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1

Tomas Mozes <hydrapolic>
Mon 04 Jan 2016 07:02:38 AM UTC, comment #1: 

Yes, we used to return more useful error in this case; please test attached patch.

(file #35914)

Andrei Borzenkov <arvidjaar>
Group Member
Mon 04 Jan 2016 06:16:42 AM UTC, original submission:  

Hello,
grub2-install fails on a Linux Gentoo system with 2 disks in RAID 1 with EFI. This is not a new install and when installing the machine it worked ok (back in 2014) with different (older) software versions.
    
# grub2-install --target=x86_64-efi --efi-directory=/boot/efi /dev/sda
Installing for x86_64-efi platform.
efibootmgr: EFI variables are not supported on this system.
efibootmgr: option requires an argument -- 'd'
efibootmgr version 0.12
usage: efibootmgr [options]
        -a | --active         sets bootnum active
        -A | --inactive       sets bootnum inactive
        -b | --bootnum XXXX   modify BootXXXX (hex)
        -B | --delete-bootnum delete bootnum (hex)
        -c | --create         create new variable bootnum and add to bootorder
        -C | --create-only      create new variable bootnum and do not add to bootorder
        -D | --remove-dups      remove duplicate values from BootOrder
        -d | --disk disk       (defaults to /dev/sda) containing loader
        -e | --edd [1|3|-1]   force EDD 1.0 or 3.0 creation variables, or guess
        -E | --device num      EDD 1.0 device number (defaults to 0x80)
        -g | --gpt            force disk with invalid PMBR to be treated as GPT
        -i | --iface name     create a netboot entry for the named interface
        -l | --loader name     (defaults to \EFI\redhat\grub.efi)
        -L | --label label     Boot manager display label (defaults to "Linux")
        -n | --bootnext XXXX   set BootNext to XXXX (hex)
        -N | --delete-bootnext delete BootNext
        -o | --bootorder XXXX,YYYY,ZZZZ,...     explicitly set BootOrder (hex)
        -O | --delete-bootorder delete BootOrder
        -p | --part part        (defaults to 1) containing loader
        -q | --quiet            be quiet
        -t | --timeout seconds  set boot manager timeout waiting for user input.
        -T | --delete-timeout   delete Timeout.
        -u | --unicode | --UCS-2  pass extra args as UCS-2 (default is ASCII)
        -v | --verbose          print additional information
        -V | --version          return version and exit
        -w | --write-signature  write unique sig to MBR if needed
        -@ | --append-binary-args file  append extra args from file (use "-" for stdin)
        -h | --help             show help/usage
Installation finished. No error reported.


# emerge --info grub
sys-boot/grub-2.02_beta2-r8::gentoo was built with the following:
USE="fonts multislot themes -debug -device-mapper -doc -efiemu (-libzfs) -mount -nls -sdl -static -test -truetype" ABI_X86="64" GRUB_PLATFORMS="efi-64 -coreboot -efi-32 -emu -ieee1275 -loongson -multiboot -pc -qemu -qemu-mips -uboot -xen"


# emerge --info efibootmgr
sys-boot/efibootmgr-0.12::gentoo was built with the following:
USE="" ABI_X86="64"


# fdisk -l /dev/sda /dev/sdb
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: ECF92001-A210-4575-B83C-6D8CFBE46E47

Device        Start        End    Sectors   Size Type
/dev/sda1      2048     976895     974848   476M EFI System
/dev/sda2    976896   20508671   19531776   9.3G Linux filesystem
/dev/sda3  20508672 1953523711 1933015040 921.8G Linux LVM

Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 61BFF92D-D369-4DD1-AC79-AC535D275C58

Device        Start        End    Sectors   Size Type
/dev/sdb1      2048     976895     974848   476M EFI System
/dev/sdb2    976896   20508671   19531776   9.3G Linux filesystem
/dev/sdb3  20508672 1953523711 1933015040 921.8G Linux LVM


# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid10]    
     
md1 : active raid1 sda1[0] sdb1[1]
      487360 blocks [2/2] [UU]

md2 : active raid1 sda2[0] sdb2[1]
      9765824 blocks [2/2] [UU]

md3 : active raid1 sda3[0] sdb3[1]
      966506360 blocks super 1.2 [2/2] [UU]


# zcat /proc/config.gz  | grep -i efi
CONFIG_EFI_PARTITION=y
CONFIG_EFI=y
# CONFIG_EFI_STUB is not set
CONFIG_FB_EFI=y
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# EFI (Extensible Firmware Interface) Support
CONFIG_EFI_VARS=y
CONFIG_EFI_RUNTIME_MAP=y
CONFIG_EFIVAR_FS=y
CONFIG_EARLY_PRINTK_EFI=y


This was reported on Gentoo Linux at:
https://bugs.gentoo.org/show_bug.cgi?id=568956

Tomas Mozes <hydrapolic>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #35913:  grub.log added by hydrapolic (531KiB - text/plain - grub log with debug)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by arvidjaar (Updated the item)
  • -email is unavailable- added by hydrapolic (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-11 phcoder Priority5 - Normal 6
    2016-03-02 phcoder Planned ReleaseNone 2.02
    2016-01-04 arvidjaar Attached File- Added 0001-osdep-unix-return-meaningful-error-if-ESP-is-not-on-.patch, #35914
    2016-01-04 hydrapolic Attached File- Added grub.log, #35913

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code