bugGNU GRUB - Bugs: bug #50834, GRUB 2/x86_64-efi: no drives...

 
 

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

bug #50834: GRUB 2/x86_64-efi: no drives visible/accessible

Submitter:  Manuel Lauss <mlauss>
Submitted:  Thu 20 Apr 2017 08:04:26 AM UTC
   
 
Category:  Filesystem Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Invalid Privacy:  Public
Assigned to:  None Originator Name:  Manuel Lauss
Open/Closed:  Closed Release:  Git master
Release:  Reproducibility:  Every Time
Planned Release:  None

Thu 20 Apr 2017 05:35:01 PM UTC, comment #3: 

Image should contain only modules needed to access $prefix; everything else is loaded from $prefix. For all supported platforms grub-install figures out needed modules automatically.

Andrei Borzenkov <arvidjaar>
Group Member
Thu 20 Apr 2017 05:23:20 PM UTC, comment #2: 

Thanks, that fixed it.  I actually thought that I need to add all these modules to get basic functionality.

Manuel Lauss <mlauss>
Thu 20 Apr 2017 04:58:27 PM UTC, comment #1: 

You should never include modules directly in image except for very special use cases. Here adding ehci to image disables platform disk driver. Please retest using

grub-install --efi-directory=/boot/efi --no-nvram --target=x86_64-efi --boot-directory=/boot/efi --compress=xz --themes="breeze"

Andrei Borzenkov <arvidjaar>
Group Member
Thu 20 Apr 2017 08:04:26 AM UTC, original submission:  

GRUB2 git master (d454509bb866d4eaefbb558d94dd0ef0228830eb),
EFI x86-64 system with NVMe drive (m.2 ssd).

GRUB2 can be started by EFI, but it does not see any drives, other than proc:

grub> ls
(proc)
grub>

I'm attaching EFI Shell "dh -d" output as dh.txt.

It's installed to disk this way:

grub-install --efi-directory=/boot/efi --no-nvram --target=x86_64-efi --boot-directory=/boot/efi --compress=xz --themes="breeze" --modules="efi_gop linux lsefi boot bitmap bitmap_scale blocklist bufio cat chain cpio ehci elf ext2 fat file font fshelp gfxmenu gfxterm gfxterm_background gfxterm_menu halt help jpeg keylayouts loadenv ls multiboot multiboot2 part_gpt part_msdos png progress read reboot relocator search search_fs_file search_fs_uuid search_label sleep terminal terminfo usb usb_keyboard usbms xzio video video_colors video_fb videoinfo datetime disk diskfilter eval extcmd configfile echo true random regexp videotest terminal terminfo probe procfs loadenv" /dev/nvme0n1p2

/boot/efi is /dev/nvme0n1p2, which is the ESP.

loading modules does work, i.e. insmod efi_gop and starting a gfxterm does work fine.

Manuel Lauss <mlauss>

 

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

Attached Files
file #40448:  dh.txt added by mlauss (120KiB - text/plain - EFI shell "dh -d" output)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by mlauss (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-04-20 arvidjaar StatusNone Invalid
        Open/ClosedOpen Closed
    2017-04-20 mlauss Attached File- Added dh.txt, #40448

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code