commit:     be6974e7d7130845915e361f35d0534e6807f63d
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  3 23:59:25 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Tue Dec  3 23:59:25 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=be6974e7

genkernel.conf: Disable MICROCODE_INITRAMFS option by default

Embedding microcode updates into initramfs is deprecated when
system is able to load multiple initramfs.

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 doc/genkernel.8.txt  | 3 +++
 gen_determineargs.sh | 2 +-
 genkernel.conf       | 8 +++++---
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/doc/genkernel.8.txt b/doc/genkernel.8.txt
index cb2009f..6c4c155 100644
--- a/doc/genkernel.8.txt
+++ b/doc/genkernel.8.txt
@@ -334,6 +334,9 @@ INITIALIZATION
     But only when kernel configuration does support early microcode loading.
     See *--microcode* option to auto-update kernel configuration.
 
+NOTE: Embedding microcode updates into initramfs is *deprecated* when
+system is able to load multiple initramfs.
+
 *--*[*no-*]*dmraid*::
     Includes or excludes DMRAID support.
     When enabled, this will compile dmraid for you.

diff --git a/gen_determineargs.sh b/gen_determineargs.sh
index a5bebd5..9e46576 100755
--- a/gen_determineargs.sh
+++ b/gen_determineargs.sh
@@ -345,7 +345,7 @@ determine_real_args() {
        set_config_with_override STRING BUSYBOX_CONFIG                        
CMD_BUSYBOX_CONFIG
        set_config_with_override BOOL   NFS                                   
CMD_NFS                                   "yes"
        set_config_with_override STRING MICROCODE                             
CMD_MICROCODE                             "all"
-       set_config_with_override BOOL   MICROCODE_INITRAMFS                   
CMD_MICROCODE_INITRAMFS                   "yes"
+       set_config_with_override BOOL   MICROCODE_INITRAMFS                   
CMD_MICROCODE_INITRAMFS                   "no"
        set_config_with_override BOOL   UNIONFS                               
CMD_UNIONFS                               "no"
        set_config_with_override BOOL   NETBOOT                               
CMD_NETBOOT                               "no"
        set_config_with_override STRING REAL_ROOT                             
CMD_REAL_ROOT

diff --git a/genkernel.conf b/genkernel.conf
index f87ae15..bdb5df4 100644
--- a/genkernel.conf
+++ b/genkernel.conf
@@ -85,9 +85,11 @@ NOCOLOR="false"
 #MICROCODE="all"
 
 # Include early microcode in generated initramfs.
-# This is enabled by default for upgrade compatability, however is obsoleted by
-# sys-boot/grub-2.02-r1, which supports multiple initramfs in the bootloader.
-#MICROCODE_INITRAMFS="yes"
+# Only needed if system cannot load multiple initramfs.
+# NOTE: >=sys-boot/grub-2 will detect and auto-load {amd,intel}-uc.img file
+#       provided by sys-firmware/intel-microcode[initramfs] or
+#       sys-kernel/linux-firmware[initramfs].
+#MICROCODE_INITRAMFS="no"
 
 # Add NFS support
 #NFS="no"

Reply via email to