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 318087 Details for
Bug 458576
No grub on multi-os/boot systems
[?]
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.
[patch]
force menu if using chainloader
grub-force-chainloader-menu.patch (text/plain), 2.64 KB, created by
Ray Strode [halfline]
on 2008-09-30 15:12:12 UTC
(
hide
)
Description:
force menu if using chainloader
Filename:
MIME Type:
Creator:
Ray Strode [halfline]
Created:
2008-09-30 15:12:12 UTC
Size:
2.64 KB
patch
obsolete
>--- grub-0.97/stage2/builtins.c 2008-09-30 10:24:37.000000000 -0400 >+++ grub-0.97/stage2/builtins.c 2008-09-30 10:17:17.000000000 -0400 >@@ -76,6 +76,7 @@ > int auth = 0; > /* The timeout. */ > int grub_timeout = -1; >+int grub_chaintimeout = -1; > /* Whether to show the menu or not. */ > int show_menu = 1; > /* The BIOS drive map. */ >@@ -531,7 +529,7 @@ > { > "chainloader", > chainloader_func, >- BUILTIN_CMDLINE | BUILTIN_HELP_LIST, >+ BUILTIN_CMDLINE | BUILTIN_HELP_LIST | BUILTIN_SHOW_CHAIN_MENU, > "chainloader [--force] FILE", > "Load the chain-loader FILE. If --force is specified, then load it" > " forcibly, whether the boot loader signature is present or not." >@@ -4957,6 +4955,37 @@ > }; > > >+/* timeout when chainloading */ >+static int >+chaintimeout_func (char *arg, int flags) >+{ >+ /* One-shot default shenanigans -- don't piss around with the menu! */ >+ if (grub_chaintimeout != -1) >+ return 0; >+ if ((saved_entryno & STAGE2_ONCEONLY_ENTRY) != 0) >+ { >+ grub_chaintimeout = 0; >+ return 0; >+ } >+ >+ if (! safe_parse_maxint (&arg, &grub_chaintimeout)) >+ return 1; >+ >+ return 0; >+} >+ >+static struct builtin builtin_chaintimeout = >+{ >+ "chaintimeout", >+ chaintimeout_func, >+ BUILTIN_MENU, >+#if 0 >+ "chaintimeout SEC", >+ "Like timeout builtin, but used when an entry that chainloads is in config" >+#endif >+}; >+ >+ > /* title */ > static int > title_func (char *arg, int flags) >@@ -5147,6 +5176,7 @@ > #endif /* SUPPORT_NETBOOT */ > &builtin_cat, > &builtin_chainloader, >+ &builtin_chaintimeout, > &builtin_clear, > &builtin_cmp, > &builtin_color, >--- grub-0.97/stage2/shared.h 2008-09-30 10:24:37.000000000 -0400 >+++ grub-0.97/stage2/shared.h 2008-09-30 10:14:58.000000000 -0400 >@@ -837,6 +837,7 @@ > #define BUILTIN_SCRIPT 0x8 /* Run in the script. */ > #define BUILTIN_NO_ECHO 0x10 /* Don't print command on booting. */ > #define BUILTIN_HELP_LIST 0x20 /* Show help in listing. */ >+#define BUILTIN_SHOW_CHAIN_MENU 0x40 /* Force menu to show up because of chainloading */ > > /* The table for a builtin. */ > struct builtin >@@ -872,6 +873,7 @@ > extern kernel_t kernel_type; > extern int show_menu; > extern int grub_timeout; >+extern int grub_chaintimeout; > > void init_builtins (void); > void init_config (void); >--- grub-0.97/stage2/stage2.c 2008-09-30 10:24:37.000000000 -0400 >+++ grub-0.97/stage2/stage2.c 2008-09-30 10:16:35.000000000 -0400 >@@ -1031,7 +1031,13 @@ > if (! builtin) > /* Unknown command. Just skip now. */ > continue; >- >+ >+ if (builtin->flags & BUILTIN_SHOW_CHAIN_MENU) >+ { >+ show_menu = 1; >+ grub_timeout = grub_chaintimeout; >+ } >+ > if (builtin->flags & BUILTIN_TITLE) > { > char *ptr;
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 458576
:
314315
| 318087 |
318088
|
318127