commit: c47369316bd38b737fc2806723049211db2461e1 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Sat Aug 3 00:18:15 2019 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Sat Aug 3 00:41:01 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c4736931
gen_initramfs.sh: create_initramfs(): Always show warning that --microcode-initramfs is deprecated Now that we can generate amd-uc.img via sys-kernel/linux-firmware[initramfs] and intel-uc.img via sys-firmware/intel-microcode[initramfs] tell all users that --microcode-initramfs is deprecated. Loading microcode via /boot/{amd,intel}-uc.img instead of embedding into initramfs is recommended because this will allow user to update microcode independently of initramfs updates through package updates. Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> gen_initramfs.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index fb269b8..36b4678 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -1806,15 +1806,14 @@ create_initramfs() { print_info 1 "$(get_indent 2) ${BOLD}Note:${NORMAL} You can set --no-microcode-initramfs if you load microcode on your own" fi - if ! isTrue "${WRAP_INITRD}" && [[ "${MICROCODE}" == intel ]] + if ! isTrue "${WRAP_INITRD}" then - # Only show this information for Intel users because we have no mechanism yet - # to generate amd-*.img in /boot after sys-kernel/linux-firmware update print_info 1 '' print_info 1 "${BOLD}Note:${NORMAL}" print_info 1 '--microcode-initramfs option is enabled by default for backward compatability.' print_info 1 'If your bootloader can load multiple initramfs it is recommended to load' - print_info 1 '/boot/intel-uc.img instead of embedding microcode into initramfs.' + print_info 1 '/boot/{amd,intel}-uc.img instead of embedding microcode into initramfs so you' + print_info 1 'can update microcode via package update independently of initramfs updates.' fi else print_info 3 "$(get_indent 1)>> --no-microcode-initramfs is set; Skipping early-microcode support ..."