Bug 857936 - No modules are loaded on grub2 network boot
Summary: No modules are loaded on grub2 network boot
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 18
Hardware: ppc64
OS: All
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: F18Betappc
TreeView+ depends on / blocked
Reported: 2012-09-17 14:30 UTC by IBM Bug Proxy
Modified: 2012-10-30 20:18 UTC (History)
7 users (show)

Fixed In Version: grub-2.00-8.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-10-30 20:16:58 UTC

Attachments (Terms of Use)
A revision of grub-2.00-add-fw_path-search.patch (2.13 KB, text/plain)
2012-09-17 14:31 UTC, IBM Bug Proxy
no flags Details
Resubmitting patch using pjones's guideline (2.46 KB, text/plain)
2012-09-19 17:54 UTC, IBM Bug Proxy
no flags Details

System ID Priority Status Summary Last Updated
IBM Linux Technology Center 85183 None None None 2019-01-24 17:53:15 UTC

Description IBM Bug Proxy 2012-09-17 14:30:43 UTC
No modules are loaded during grub2 network boot on ppc64.

After fetching grub2 from the network, the grub menu is presented. If I go to the grub console and try to fire a few commands I get following output:

grub> echo 'foo'
error: can't find command `echo'.
grub> help
error: can't find command `help'.

The same behavior happens if I choose one of the grub menu entries. It fails to boot because there is no 'linux' command.

It can be workaround adding a few insmod's to the grub config file, like:
insmod echo
insmod linux

This is the command line I used to generate grub's elf and modules directory:

grub-mknetdir --net-directory=/tftpboot --subdir=gustavold


This is a revision of Matthew Garrett's patch 
grub-2.00-add-fw_path-search.patch. This should fix the "no modules 
loaded" issue.

Matthew's patch looks for the grub.cfg file in the bootlocation. In case 
the file is not found, it continues the normal path, which is to look 
for the grub.cfg using the prefix.

The issue comes from the fact that the original patch does not clear the 
grub_errno in case the grub.cfg is not found in the bootlocation. This 
leads to a fake error later when grub tries to open the file "command.lst".

Comment 1 IBM Bug Proxy 2012-09-17 14:31:02 UTC
Created attachment 613684 [details]
A revision of grub-2.00-add-fw_path-search.patch

Comment 2 Mads Kiilerich 2012-09-17 14:59:02 UTC
I have seen a similar problem caused by grub-2.00-add-fw_path-search.patch when using grub2-install --removable to make a USB boot 'disk' for the OS/grub2 on the harddrive of an EFI Mac. Let's hope the updated patch fixes this issue too.

Comment 3 IBM Bug Proxy 2012-09-19 17:54:40 UTC
Created attachment 614509 [details]
Resubmitting patch using pjones's guideline

------- Comment (attachment only) From pfsmorigo@br.ibm.com 2012-09-19 17:37 EDT-------

Comment 4 Gustavo Luiz Duarte 2012-10-30 20:18:02 UTC
grub2-2.00-10.fc18 works fine.

Note You need to log in before you can comment on or make changes to this bug.