Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 513170 Details for
Bug 370331
(U)EFI-supported install media
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
01-grub-uefi-config-generator.patch
01-grub-uefi-config-generator.patch (text/plain), 1.90 KB, created by
Ben Kohler
on 2018-01-04 16:03:47 UTC
(
hide
)
Description:
01-grub-uefi-config-generator.patch
Filename:
MIME Type:
Creator:
Ben Kohler
Created:
2018-01-04 16:03:47 UTC
Size:
1.90 KB
patch
obsolete
>From d43a646241662117fc9faa7191a8625e2ad385d1 Mon Sep 17 00:00:00 2001 >From: Ben Kohler <bkohler@gmail.com> >Date: Tue, 19 Sep 2017 09:12:56 -0500 >Subject: [PATCH] bootloader-setup.sh: add rough draft of grub2 cfg generation > >--- > targets/support/bootloader-setup.sh | 35 ++++++++++++++++++++++++++++++++++- > 1 file changed, 34 insertions(+), 1 deletion(-) > >diff --git a/targets/support/bootloader-setup.sh b/targets/support/bootloader-setup.sh >index d9e2620..228883c 100755 >--- a/targets/support/bootloader-setup.sh >+++ b/targets/support/bootloader-setup.sh >@@ -338,6 +338,38 @@ case ${clst_hostarch} in > echo " localboot -1" >> $icfg > echo " MENU HIDE" >> $icfg > fi >+ >+ # GRUB2 >+ if [ -d $1/grub ] >+ then >+ if [ -e $1/isolinux/isolinux.bin ] >+ then >+ kern_subdir=/isolinux >+ else >+ cp -f $1/boot/* $1/grub >+ kern_subdir=/grub >+ fi >+ >+ iacfg=$1/grub/grub.cfg >+ echo 'set default=0' > ${iacfg} >+ echo 'set gfxpayload=keep' >> ${iacfg} >+ echo 'set timeout=10' >> ${iacfg} >+ echo 'insmod all_video' >> ${iacfg} >+ echo '' >> ${iacfg} >+ for x in ${clst_boot_kernel} >+ do >+ echo "menuentry 'Boot LiveCD (kernel: ${x})' --class gnu-linux --class os {" >> ${iacfg} >+ echo " linux ${kern_subdir}/${x} ${default_append_line}" >> ${iacfg} >+ echo " initrd ${kern_subdir}/${x}.igz" >> ${iacfg} >+ echo "}" >> ${iacfg} >+ echo "" >> ${iacfg} >+ echo "menuentry 'Boot LiveCD (kernel: ${x}) (cached)' --class gnu-linux --class os {" >> ${iacfg} >+ echo " linux ${kern_subdir}/${x} ${default_append_line}" >> ${iacfg} >+ echo " initrd ${kern_subdir}/${x}.igz" >> ${iacfg} >+ echo "}" >> ${iacfg} >+ echo "" >> ${iacfg} >+ done >+ fi > > if [ -e $1/boot/efi/elilo.efi ] > then >@@ -362,7 +394,8 @@ case ${clst_hostarch} in > done > cp ${iacfg} $1/boot/efi/boot > fi >- >+ >+ # GRUB legacy (0.97) > if [ -e $1/boot/grub/stage2_eltorito ] > then > icfg=$1/boot/grub/menu.lst
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 370331
:
513168
| 513170 |
513172