Bug 1773338
| Summary: | [RHEL 8] Re-generate initramfs not only for the currently running kernel | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Eugene Syromiatnikov <esyr> | |
| Component: | microcode_ctl | Assignee: | Eugene Syromiatnikov <esyr> | |
| Status: | CLOSED ERRATA | QA Contact: | Jeff Bastian <jbastian> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 8.2 | CC: | efuller, skozina | |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
|
| Target Release: | 8.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | microcode_ctl-20191115-5.el8 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1773347 (view as bug list) | Environment: | ||
| Last Closed: | 2020-11-04 01:45:27 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1773347, 1819241 | |||
|
Description
Eugene Syromiatnikov
2019-11-17 18:37:35 UTC
The proposed solution is to re-generate initramfs for three[1] most recently installed[2] kernels that were installed after[3] the currently running kernel. [1] This is the default "installonly_limit" value in /etc/yum.conf; there were reports of negative user experience (unacceptably long post-install hook execution times) on systems with unusually many kernels installed. [2] In order to address situations like https://access.redhat.com/support/cases/#/case/01779274 where initramfs is re-generated for the kernels that are not installed (only modules directory is present), resulting in filled up /boot (it should have been addressed on dracut's side, but, well). [3] In order to address situations like https://access.redhat.com/support/cases/#/case/01814106 where older kernels are rightfully treated as a fallback that can be used in cases where dracut generates botched initramfs images. Verified with microcode_ctl-20200609-2.el8. Only the 3 most recent kernels (by rpm install time) got updated initramfs images during the microcode_ctl update.
[root@dell-pet140-01 ~]# rpm -qa --qf "%{NAME} %{VERSION}-%{RELEASE}.%{ARCH} %{installtime}\n" kernel | sort -r -n -k '3,3'
kernel 4.18.0-222.el8.x86_64 1593700549
kernel 4.18.0-221.el8.x86_64 1593700437
kernel 4.18.0-220.el8.x86_64 1593700108
kernel 4.18.0-219.el8.x86_64 1593700045
kernel 4.18.0-218.el8.x86_64 1593699959
kernel 4.18.0-217.el8.x86_64 1593699905
[root@dell-pet140-01 ~]# ls -lt /boot/init*64.img
-rw-------. 1 root root 31758178 Jul 2 10:35 /boot/initramfs-4.18.0-222.el8.x86_64.img
-rw-------. 1 root root 31757953 Jul 2 10:33 /boot/initramfs-4.18.0-221.el8.x86_64.img
-rw-------. 1 root root 31762133 Jul 2 10:28 /boot/initramfs-4.18.0-220.el8.x86_64.img
-rw-------. 1 root root 31762379 Jul 2 10:27 /boot/initramfs-4.18.0-219.el8.x86_64.img
-rw-------. 1 root root 31754057 Jul 2 10:25 /boot/initramfs-4.18.0-218.el8.x86_64.img
-rw-------. 1 root root 31754756 Jul 2 10:25 /boot/initramfs-4.18.0-217.el8.x86_64.img
[root@dell-pet140-01 ~]# uname -r
4.18.0-220.el8.x86_64
[root@dell-pet140-01 ~]# rpm -q microcode_ctl
microcode_ctl-20200602-2.el8.x86_64
[root@dell-pet140-01 ~]# yum -y update microcode_ctl
...
Upgraded:
microcode_ctl-4:20200609-2.el8.x86_64
Complete!
[root@dell-pet140-01 ~]# ls -lt /boot/init*64.img
-rw-------. 1 root root 31762057 Jul 2 10:42 /boot/initramfs-4.18.0-220.el8.x86_64.img <-- updated
-rw-------. 1 root root 31757984 Jul 2 10:42 /boot/initramfs-4.18.0-221.el8.x86_64.img <-- updated
-rw-------. 1 root root 31758210 Jul 2 10:41 /boot/initramfs-4.18.0-222.el8.x86_64.img <-- updated
-rw-------. 1 root root 31762379 Jul 2 10:27 /boot/initramfs-4.18.0-219.el8.x86_64.img
-rw-------. 1 root root 31754057 Jul 2 10:25 /boot/initramfs-4.18.0-218.el8.x86_64.img
-rw-------. 1 root root 31754756 Jul 2 10:25 /boot/initramfs-4.18.0-217.el8.x86_64.img
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (microcode_ctl bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:4489 |