Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 613684 Details for
Bug 857936
No modules are loaded on grub2 network boot
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
A revision of grub-2.00-add-fw_path-search.patch
grub-2.00-add-fw_path-search.patch (text/plain), 2.13 KB, created by
IBM Bug Proxy
on 2012-09-17 14:31:02 UTC
(
hide
)
Description:
A revision of grub-2.00-add-fw_path-search.patch
Filename:
MIME Type:
Creator:
IBM Bug Proxy
Created:
2012-09-17 14:31:02 UTC
Size:
2.13 KB
patch
obsolete
>From c47922808b37e569885a6f9e45c9074cdc61b0ef Mon Sep 17 00:00:00 2001 >From: Fedora Ninjas <pjones@fedoraproject.org> >Date: Fri, 14 Sep 2012 16:06:24 -0300 >Subject: [PATCH] Add fw_path variable > >--- > grub-core/kern/main.c | 16 ++++++++++++++-- > grub-core/normal/main.c | 25 ++++++++++++++++++++++++- > 2 files changed, 38 insertions(+), 3 deletions(-) > >diff --git a/grub-core/kern/main.c b/grub-core/kern/main.c >index 3262444..820fd66 100644 >--- a/grub-core/kern/main.c >+++ b/grub-core/kern/main.c >@@ -114,6 +114,20 @@ grub_set_prefix_and_root (void) > > grub_register_variable_hook ("root", 0, grub_env_write_root); > >+ grub_machine_get_bootlocation (&fwdevice, &fwpath); >+ >+ if (fwdevice && fwpath) >+ { >+ char *fw_path; >+ >+ fw_path = grub_xasprintf ("(%s)/%s", fwdevice, fwpath); >+ if (fw_path) >+ { >+ grub_env_set ("fw_path", fw_path); >+ grub_free (fw_path); >+ } >+ } >+ > if (prefix) > { > char *pptr = NULL; >@@ -131,8 +145,6 @@ grub_set_prefix_and_root (void) > if (pptr[0]) > path = grub_strdup (pptr); > } >- if ((!device || device[0] == ',' || !device[0]) || !path) >- grub_machine_get_bootlocation (&fwdevice, &fwpath); > > if (!device && fwdevice) > device = fwdevice; >diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c >index 13473ec..bf73057 100644 >--- a/grub-core/normal/main.c >+++ b/grub-core/normal/main.c >@@ -333,7 +333,30 @@ grub_cmd_normal (struct grub_command *cmd __attribute__ ((unused)), > /* Guess the config filename. It is necessary to make CONFIG static, > so that it won't get broken by longjmp. */ > char *config; >- const char *prefix; >+ const char *prefix, *fw_path; >+ >+ fw_path = grub_env_get ("fw_path"); >+ if (fw_path) >+ { >+ config = grub_xasprintf ("%s/grub.cfg", fw_path); >+ if (config) >+ { >+ grub_file_t file; >+ >+ file = grub_file_open (config); >+ if (file) >+ { >+ grub_file_close (file); >+ grub_enter_normal_mode (config); >+ } >+ else >+ { >+ /* Ignore all errors. */ >+ grub_errno = 0; >+ } >+ grub_free (config); >+ } >+ } > > prefix = grub_env_get ("prefix"); > if (prefix) >-- >1.7.7.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 857936
: 613684 |
614509