Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 662812

Summary: sys-boot/grub: grub-mkconfig references non-existent microcode
Product: Gentoo Linux Reporter: Robin Johnson <robbat2>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: RESOLVED NEEDINFO    
Severity: normal CC: base-system, joerg.schaible
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 662492    

Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2018-08-04 23:31:00 UTC
Reported in bug 662492 about genkernel behavior:
> But even worse, if I generate now the grub configuration file, it claims to
> find intel-ucode.cpio and adds it as first element to initrd line. After the
> next reboot the system is hosed because, /intel-ucode.cpio is nowhere to
> find and the boot sequence stops.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2018-08-04 23:33:26 UTC
Original reporter added to this bug for grub behavior.

Joerg:
You mentioned that the grub config included /intel-ucode.cpio when that file did not exist on your system.
1. Can you please state exactly which version of grub you were using
2. Your /boot partitioning
3. Output of "find / -name intel-ucode.cpio"

I'm wondering if the grub-mkconfig code saw it existing in somewhere that wasn't the same place during bootloader exec.
Comment 2 Joerg Schaible 2018-08-30 23:33:51 UTC
$ emerge --search =sys-boot/grub
  
[ Results for search key : =sys-boot/grub ]
Searching...

*  sys-boot/grub
      Latest version available: 2.02-r1
      Latest version installed: 2.02-r1
      Size of files: 7,707 KiB
      Homepage:      https://www.gnu.org/software/grub/
      Description:   GNU GRUB boot loader
      License:       GPL-3 fonts? ( GPL-2-with-font-exception ) themes? ( BitstreamVera )

[ Applications found : 1 ]

$ df -hl
Filesystem      Size  Used Avail Use% Mounted on
udev             10M     0   10M   0% /dev
/dev/sdb3       220G  146G   63G  70% /
tmpfs           799M  988K  798M   1% /run
tmpfs           3.9G     0  3.9G   0% /dev/shm
cgroup_root      10M     0   10M   0% /sys/fs/cgroup
none            3.9G     0  3.9G   0% /run/user/1000
/dev/sdb1       194M  113M   71M  62% /boot

$ sudo find / -name intel-ucode.cpio

$ emerge --search =sys-firmware/intel-microcode
  
[ Results for search key : =sys-firmware/intel-microcode ]
Searching...

*  sys-firmware/intel-microcode
      Latest version available: 20180807a_p20180808
      Latest version installed: [ Not Installed ]
      Size of files: 5,950 KiB
      Homepage:      http://inertiawar.com/microcode/ https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=28087
      Description:   Intel IA32/IA64 microcode update data
      License:       intel-ucode

[ Applications found : 1 ]
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2018-09-07 20:40:48 UTC
Joerg:
Attach your grub config file as well please?
Both /boot/grub*/grub.cfg and /etc/default/grub
Comment 4 Joerg Schaible 2020-02-16 10:55:02 UTC
we can close this, new versions of grub handle this properly