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 908187 Details for
Bug 1108296
30_os-prober generates incorrect menuentry definitions
[?]
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]
add support specifying linux and initrd type in 30_os-prober
0001-add-support-specifying-linux-and-initrd-in-30_os-pro.patch (text/plain), 2.43 KB, created by
Gene Czarcinski
on 2014-06-12 15:39:37 UTC
(
hide
)
Description:
add support specifying linux and initrd type in 30_os-prober
Filename:
MIME Type:
Creator:
Gene Czarcinski
Created:
2014-06-12 15:39:37 UTC
Size:
2.43 KB
patch
obsolete
>From c4732988e79431d41b90311f54e2b91fb6be16d2 Mon Sep 17 00:00:00 2001 >From: Gene Czarcinski <gczarcinski@gmail.com> >Date: Thu, 12 Jun 2014 11:20:43 -0400 >Subject: [PATCH] add support specifying linux and initrd in 30_os-prober >Content-Type: text/plain; charset="utf-8" >Content-Transfer-Encoding: 8bit > >With the use of linux16/initrd16 and linuxefi/initefi, assuming that >linux/initrd are the operations used by 30_os-prober is incorrect. > >This patch adds code to support additional information from >linux-boot-prober which specifies the actual linux/initrd >values in use. > >To operate properly, this requres that os-prober be update >to provide the additional information returned by linux-boot-prober. > >This patch addresses the problems identified in rhbz #1108296 and >may also fix rhbz #1051632. Also see rhbz #1108344. >--- > util/grub.d/30_os-prober.in | 18 ++++++++++++++---- > 1 file changed, 14 insertions(+), 4 deletions(-) > >diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in >index 390bb0e..ee6b4f6 100644 >--- a/util/grub.d/30_os-prober.in >+++ b/util/grub.d/30_os-prober.in >@@ -202,11 +202,21 @@ EOF > LKERNEL="`echo ${LINUX} | cut -d ':' -f 4`" > LINITRD="`echo ${LINUX} | cut -d ':' -f 5`" > LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`" >+ LKERNEL_TYPE="`echo ${LINUX} | cut -d ':' -f 7`" >+ LINITRD_TYPE="`echo ${LINUX} | cut -d ':' -f 8`" > > if [ -z "${LLABEL}" ] ; then > LLABEL="${LONGNAME}" > fi > >+ if [ "x$LKERNEL_TYPE" == "x" ] ; then >+ LKERNEL_TYPE="linux" >+ fi >+ >+ if [ "x$LINITRD_TYPE" == "x" ] ; then >+ LINITRD_TYPE="initrd" >+ fi >+ > if [ "${LROOT}" != "${LBOOT}" ]; then > LKERNEL="${LKERNEL#/boot}" > LINITRD="${LINITRD#/boot}" >@@ -234,11 +244,11 @@ EOF > save_default_entry | grub_add_tab > printf '%s\n' "${prepare_boot_cache}" > cat << EOF >- linux ${LKERNEL} ${LPARAMS} >+ $LKERNEL_TYPE ${LKERNEL} ${LPARAMS} > EOF > if [ -n "${LINITRD}" ] ; then > cat << EOF >- initrd ${LINITRD} >+ $LINITRD_TYPE ${LINITRD} > EOF > fi > cat << EOF >@@ -254,11 +264,11 @@ EOF > save_default_entry | sed -e "s/^/$grub_tab$grub_tab/" > printf '%s\n' "${prepare_boot_cache}" | grub_add_tab > cat << EOF >- linux ${LKERNEL} ${LPARAMS} >+ $LKERNEL_TYPE ${LKERNEL} ${LPARAMS} > EOF > if [ -n "${LINITRD}" ] ; then > cat << EOF >- initrd ${LINITRD} >+ $LINITRD_TYPE ${LINITRD} > EOF > fi > cat << EOF >-- >1.9.3 >
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 1108296
:
908187
|
909733
|
951005