Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 515778 Details for
Bug 645088
sys-boot/grub-2.02 - Add native support for intel-microcode
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[V2] Patch for grub-2.02 adding microcode initrd support
grub-microcode-v3.patch (text/plain), 3.17 KB, created by
Matthew Turnbull
on 2018-01-21 20:50:32 UTC
(
hide
)
Description:
[V2] Patch for grub-2.02 adding microcode initrd support
Filename:
MIME Type:
Creator:
Matthew Turnbull
Created:
2018-01-21 20:50:32 UTC
Size:
3.17 KB
patch
obsolete
>diff -rupN a/docs/grub.texi b/docs/grub.texi >--- a/docs/grub.texi >+++ b/docs/grub.texi >@@ -1398,6 +1398,11 @@ for all respectively normal entries. > The values of these options replace the values of @samp{GRUB_CMDLINE_LINUX} > and @samp{GRUB_CMDLINE_LINUX_DEFAULT} for Linux and Xen menu entries. > >+@item GRUB_CUSTOM_INITRD_INCLUDES >+List of space-separated custom initrd images to be loaded from @samp{/boot}. >+They will be loaded after a processor microcode image but before a kernel >+specific image. >+ > @item GRUB_DISABLE_LINUX_UUID > Normally, @command{grub-mkconfig} will generate menu entries that use > universally-unique identifiers (UUIDs) to identify the root filesystem to >diff -rupN a/util/grub-mkconfig.in b/util/grub-mkconfig.in >--- a/util/grub-mkconfig.in >+++ b/util/grub-mkconfig.in >@@ -211,6 +211,7 @@ export GRUB_DEFAULT \ > GRUB_CMDLINE_NETBSD \ > GRUB_CMDLINE_NETBSD_DEFAULT \ > GRUB_CMDLINE_GNUMACH \ >+ GRUB_CUSTOM_INITRD_INCLUDES \ > GRUB_TERMINAL_INPUT \ > GRUB_TERMINAL_OUTPUT \ > GRUB_SERIAL_COMMAND \ >diff -rupN a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in >--- a/util/grub.d/10_linux.in >+++ b/util/grub.d/10_linux.in >@@ -136,9 +136,13 @@ EOF > if test -n "${initrd}" ; then > # TRANSLATORS: ramdisk isn't identifier. Should be translated. > message="$(gettext_printf "Loading initial ramdisk ...")" >+ initrd_path= >+ for i in ${initrd}; do >+ initrd_path="${initrd_path} ${rel_dirname}/${i}" >+ done > sed "s/^/$submenu_indentation/" << EOF > echo '$(echo "$message" | grub_quote)' >- initrd ${rel_dirname}/${initrd} >+ initrd $(echo $initrd_path) > EOF > fi > sed "s/^/$submenu_indentation/" << EOF >@@ -189,6 +193,21 @@ while [ "x$list" != "x" ] ; do > linux_root_device_thisversion="${LINUX_ROOT_DEVICE}" > > initrd= >+ # Search for processor microcode initrd images. Use the first found. >+ for i in intel-uc.img intel-ucode.img amd-uc.img amd-ucode.img \ >+ early-uc.cpio early-ucode.cpio microcode.cpio; do >+ if test -e "${dirname}/${i}" ; then >+ initrd="${initrd} ${i}" >+ break >+ fi >+ done >+ # Include user defined initrd images. >+ for i in ${GRUB_CUSTOM_INITRD_INCLUDES}; do >+ if test -e "${dirname}/${i}" ; then >+ initrd="${initrd} ${i}" >+ fi >+ done >+ # Search for kernel specific initrd images. Use the first found. > for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \ > "initrd-${version}" "initramfs-${version}.img" \ > "initrd.img-${alt_version}" "initrd-${alt_version}.img" \ >@@ -198,7 +217,7 @@ while [ "x$list" != "x" ] ; do > "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \ > "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}"; do > if test -e "${dirname}/${i}" ; then >- initrd="$i" >+ initrd="${initrd} ${i}" > break > fi > done >@@ -217,7 +236,7 @@ while [ "x$list" != "x" ] ; do > fi > > if test -n "${initrd}" ; then >- gettext_printf "Found initrd image: %s\n" "${dirname}/${initrd}" >&2 >+ gettext_printf "Found initrd image(s) in %s:%s\n" "${dirname}" "${initrd}" >&2 > elif test -z "${initramfs}" ; then > # "UUID=" and "ZFS=" magic is parsed by initrd or initramfs. Since there's > # no initrd or builtin initramfs, it can't work here.
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 645088
:
515340
|
515778
|
515802
|
515808
|
516028