View Issue Details

IDProjectCategoryView StatusLast Update
0001012channel: kernel/el7--kernel--request-for-enhancement--public2020-07-01 18:46
Reportertoracat Assigned Toburakkucat  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0001012: initramfs is not regenerated for kernel-ml or kernel-lt upon microcode updates
DescriptionWhen the microcode_ctl package is installed/updated, the initramfs file is supposed to be regenerated. This does not happen with kernel-ml or kernel-lt.

The explanation is in the posttrans scriptlet of microcode_ctl.

rpm -q --scripts microcode_ctl

[quote]
...
# For RPM selection, kernel flavours (like "debug" or "kdump" or "zfcp",
# with only the former being relevant to x86 architecture) are a part or RPM
# name; it's also a part of uname, with different separator used in RHEL 6/7
# and RHEL 8. RT kernel, however, is special, as "rt" is another part
# of RPM name and it has its own versioning scheme both in NVR and uname.
# And there's the kernel package split in RHEL 8, so one should look for *-core
# and not the main package.
pkgs="kernel kernel-debug kernel-rt kernel-rt-debug"
...
[/quote]
TagsNo tags attached.

Activities

burakkucat

2020-06-20 17:35

administrator   ~0006972

Ack.

The following scriptlet has been proposed for addition to the specification files --

%triggerin -- microcode_ctl
for KVERSION in $(rpm -q --qf '%{v}-%{r}.%{arch}\n' %{name}); do
    %{_sbindir}/dracut -f --kver $KVERSION
done

burakkucat

2020-06-21 08:24

administrator   ~0006974

The recently released kernel-lt-4.4.228-1.el7.elrepo package set [1] contains the above scriptlet.

When convenient, please test and report back with your findings.

[1] http://lists.elrepo.org/pipermail/elrepo/2020-June/005259.html

pperry

2020-06-21 09:43

administrator   ~0006975

# ll /boot/*.el7.x86_64.img
-rw-------. 1 root root 48105991 Apr 8 21:08 /boot/initramfs-3.10.0-1062.el7.x86_64.img
-rw-------. 1 root root 48114560 Jun 10 13:06 /boot/initramfs-3.10.0-1127.10.1.el7.x86_64.img
-rw-------. 1 root root 48118903 Jun 10 18:28 /boot/initramfs-3.10.0-1127.8.2.el7.x86_64.img
-rw-------. 1 root root 48116723 Jun 10 18:28 /boot/initramfs-3.10.0-1127.el7.x86_64.img



# yum --enablerepo=elrepo-kernel install kernel-lt

Downloading packages:
kernel-lt-4.4.228-1.el7.elrepo.x86_64.rpm | 39 MB 00:00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : kernel-lt-4.4.228-1.el7.elrepo.x86_64 1/1

Broadcast message from systemd-journald@quad.pendre.co.uk (Sun 2020-06-21 16:09:41 BST):

dracut[24611]: /lib/modules/4.4.228-1.el7.elrepo.x86_64//modules.dep is missing. Did you run depmod?

/lib/modules/4.4.228-1.el7.elrepo.x86_64//modules.dep is missing. Did you run depmod?
warning: %triggerin(kernel-lt-4.4.228-1.el7.elrepo.x86_64) scriptlet failed, exit status 1

Message from syslogd@quad at Jun 21 16:09:41 ...
 dracut:/lib/modules/4.4.228-1.el7.elrepo.x86_64//modules.dep is missing. Did you run depmod?
Non-fatal <unknown> scriptlet failure in rpm package kernel-lt-4.4.228-1.el7.elrepo.x86_64

Broadcast message from systemd-journald@quad.pendre.co.uk (Sun 2020-06-21 16:09:54 BST):

dracut[24707]: Failed to install module nvidia


Message from syslogd@quad at Jun 21 16:09:54 ...
 dracut:Failed to install module nvidia

Failed to install module nvidia
  Verifying : kernel-lt-4.4.228-1.el7.elrepo.x86_64 1/1

Installed:
  kernel-lt.x86_64 0:4.4.228-1.el7.elrepo

Complete!

# ll /boot/*.img
-rw-------. 1 root root 64636267 Jan 8 2017 /boot/initramfs-0-rescue-f9cce1812d7645c38e7a9d4da69855e2.img
-rw-------. 1 root root 48105991 Apr 8 21:08 /boot/initramfs-3.10.0-1062.el7.x86_64.img
-rw-------. 1 root root 48114560 Jun 10 13:06 /boot/initramfs-3.10.0-1127.10.1.el7.x86_64.img
-rw-------. 1 root root 48118903 Jun 10 18:28 /boot/initramfs-3.10.0-1127.8.2.el7.x86_64.img
-rw-------. 1 root root 48116723 Jun 10 18:28 /boot/initramfs-3.10.0-1127.el7.x86_64.img
-rw-------. 1 root root 30261413 Jun 21 16:10 /boot/initramfs-4.4.228-1.el7.elrepo.x86_64.img




# yum reinstall microcode_ctl

Downloading packages:
microcode_ctl-2.1-61.6.el7_8.x86_64.rpm | 2.6 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 2:microcode_ctl-2.1-61.6.el7_8.x86_64 1/1

Broadcast message from systemd-journald@quad.pendre.co.uk (Sun 2020-06-21 16:13:56 BST):

dracut[23728]: Failed to install module nvidia


Message from syslogd@quad at Jun 21 16:13:56 ...
 dracut:Failed to install module nvidia
Failed to install module nvidia

  Verifying : 2:microcode_ctl-2.1-61.6.el7_8.x86_64 1/1

Installed:
  microcode_ctl.x86_64 2:2.1-61.6.el7_8

Complete!



# ll /boot/*.img
-rw-------. 1 root root 48105991 Apr 8 21:08 /boot/initramfs-3.10.0-1062.el7.x86_64.img
-rw-------. 1 root root 48115440 Jun 21 16:15 /boot/initramfs-3.10.0-1127.10.1.el7.x86_64.img
-rw-------. 1 root root 48118903 Jun 10 18:28 /boot/initramfs-3.10.0-1127.8.2.el7.x86_64.img
-rw-------. 1 root root 48116723 Jun 10 18:28 /boot/initramfs-3.10.0-1127.el7.x86_64.img
-rw-------. 1 root root 30262461 Jun 21 16:14 /boot/initramfs-4.4.228-1.el7.elrepo.x86_64.img


# cat /var/log/messages
Jun 21 16:09:41 quad dracut: dracut-033-568.el7
Jun 21 16:09:41 quad dracut: Executing: /usr/sbin/dracut -f --kver 4.4.228-1.el7.elrepo.x86_64
Jun 21 16:09:41 quad dracut: /lib/modules/4.4.228-1.el7.elrepo.x86_64//modules.dep is missing. Did you run depmod?
Jun 21 16:09:41 quad yum[24506]: Installed: kernel-lt-4.4.228-1.el7.elrepo.x86_64
Jun 21 16:09:42 quad dracut: dracut-033-568.el7
Jun 21 16:09:42 quad dracut: Executing: /sbin/dracut -f /boot/initramfs-4.4.228-1.el7.elrepo.x86_64.img 4.4.228-1.el7.elrepo.x86_64
Jun 21 16:09:43 quad dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
Jun 21 16:09:43 quad dracut: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
Jun 21 16:09:43 quad dracut: dracut module 'cifs' will not be installed, because command 'mount.cifs' could not be found!
Jun 21 16:09:44 quad dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
Jun 21 16:09:44 quad dracut: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
Jun 21 16:09:44 quad dracut: dracut module 'cifs' will not be installed, because command 'mount.cifs' could not be found!
Jun 21 16:09:44 quad dracut: *** Including module: bash ***
Jun 21 16:09:44 quad dracut: *** Including module: nss-softokn ***
Jun 21 16:09:44 quad dracut: *** Including module: i18n ***
Jun 21 16:09:44 quad dracut: *** Including module: network ***
Jun 21 16:09:46 quad dracut: *** Including module: ifcfg ***
Jun 21 16:09:46 quad dracut: *** Including module: drm ***
Jun 21 16:09:46 quad dracut: *** Including module: plymouth ***
Jun 21 16:09:48 quad dracut: *** Including module: kernel-modules ***
Jun 21 16:09:52 quad dracut: *** Including module: mdraid ***
Jun 21 16:09:52 quad dracut: Skipping udev rule: 64-md-raid.rules
Jun 21 16:09:53 quad dracut: *** Including module: resume ***
Jun 21 16:09:53 quad dracut: *** Including module: rootfs-block ***
Jun 21 16:09:53 quad dracut: *** Including module: terminfo ***
Jun 21 16:09:53 quad dracut: *** Including module: udev-rules ***
Jun 21 16:09:53 quad dracut: Skipping udev rule: 40-redhat-cpu-hotplug.rules
Jun 21 16:09:53 quad dracut: Skipping udev rule: 91-permissions.rules
Jun 21 16:09:53 quad dracut: *** Including module: biosdevname ***
Jun 21 16:09:53 quad dracut: *** Including module: systemd ***
Jun 21 16:09:53 quad dracut: *** Including module: usrmount ***
Jun 21 16:09:53 quad dracut: *** Including module: base ***
Jun 21 16:09:53 quad dracut: *** Including module: fs-lib ***
Jun 21 16:09:53 quad dracut: *** Including module: microcode_ctl-fw_dir_override ***
Jun 21 16:09:53 quad dracut: microcode_ctl module: mangling fw_dir
Jun 21 16:09:53 quad dracut: microcode_ctl: reset fw_dir to "/lib/firmware/updates /lib/firmware"
Jun 21 16:09:53 quad dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel"...
Jun 21 16:09:53 quad dracut: microcode_ctl: kernel version "4.4.228-1.el7.elrepo.x86_64" failed early load check for "intel", skipping
Jun 21 16:09:53 quad dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-2d-07"...
Jun 21 16:09:53 quad dracut: microcode_ctl: configuration "intel-06-2d-07" is ignored
Jun 21 16:09:53 quad dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-4f-01"...
Jun 21 16:09:53 quad dracut: microcode_ctl: configuration "intel-06-4f-01" is ignored
Jun 21 16:09:53 quad dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-55-04"...
Jun 21 16:09:53 quad dracut: microcode_ctl: configuration "intel-06-55-04" is ignored
Jun 21 16:09:53 quad dracut: microcode_ctl: final fw_dir: "/lib/firmware/updates /lib/firmware"
Jun 21 16:09:53 quad dracut: *** Including module: shutdown ***
Jun 21 16:09:54 quad dracut: *** Including modules done ***
Jun 21 16:09:54 quad dracut: Failed to install module nvidia
Jun 21 16:09:54 quad dracut: *** Installing kernel module dependencies and firmware ***
Jun 21 16:09:54 quad dracut: *** Installing kernel module dependencies and firmware done ***
Jun 21 16:09:54 quad dracut: *** Resolving executable dependencies ***
Jun 21 16:09:55 quad dracut: *** Resolving executable dependencies done***
Jun 21 16:09:55 quad dracut: *** Hardlinking files ***
Jun 21 16:09:55 quad dracut: *** Hardlinking files done ***
Jun 21 16:09:55 quad dracut: *** Stripping files ***
Jun 21 16:09:56 quad dracut: *** Stripping files done ***
Jun 21 16:09:56 quad dracut: *** Generating early-microcode cpio image contents ***
Jun 21 16:09:56 quad dracut: *** No early-microcode cpio image needed ***
Jun 21 16:09:56 quad dracut: *** Store current command line parameters ***
Jun 21 16:09:56 quad dracut: *** Creating image file ***
Jun 21 16:10:08 quad dracut: *** Creating image file done ***
Jun 21 16:10:14 quad dracut: *** Creating initramfs image file '/boot/initramfs-4.4.228-1.el7.elrepo.x86_64.img' done ***
Jun 21 16:13:46 quad dracut: dracut-033-568.el7
Jun 21 16:13:46 quad dracut: Executing: /usr/sbin/dracut -f --kver 4.4.228-1.el7.elrepo.x86_64
Jun 21 16:13:47 quad dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
Jun 21 16:13:47 quad dracut: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
Jun 21 16:13:47 quad dracut: dracut module 'cifs' will not be installed, because command 'mount.cifs' could not be found!
Jun 21 16:13:47 quad dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
Jun 21 16:13:47 quad dracut: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
Jun 21 16:13:47 quad dracut: dracut module 'cifs' will not be installed, because command 'mount.cifs' could not be found!
Jun 21 16:13:48 quad dracut: *** Including module: bash ***
Jun 21 16:13:48 quad dracut: *** Including module: nss-softokn ***
Jun 21 16:13:48 quad dracut: *** Including module: i18n ***
Jun 21 16:13:48 quad dracut: *** Including module: network ***
Jun 21 16:13:49 quad dracut: *** Including module: ifcfg ***
Jun 21 16:13:49 quad dracut: *** Including module: drm ***
Jun 21 16:13:50 quad dracut: *** Including module: plymouth ***
Jun 21 16:13:51 quad dracut: *** Including module: kernel-modules ***
Jun 21 16:13:55 quad dracut: *** Including module: mdraid ***
Jun 21 16:13:55 quad dracut: Skipping udev rule: 64-md-raid.rules
Jun 21 16:13:55 quad dracut: *** Including module: resume ***
Jun 21 16:13:55 quad dracut: *** Including module: rootfs-block ***
Jun 21 16:13:55 quad dracut: *** Including module: terminfo ***
Jun 21 16:13:55 quad dracut: *** Including module: udev-rules ***
Jun 21 16:13:55 quad dracut: Skipping udev rule: 40-redhat-cpu-hotplug.rules
Jun 21 16:13:56 quad dracut: Skipping udev rule: 91-permissions.rules
Jun 21 16:13:56 quad dracut: *** Including module: biosdevname ***
Jun 21 16:13:56 quad dracut: *** Including module: systemd ***
Jun 21 16:13:56 quad dracut: *** Including module: usrmount ***
Jun 21 16:13:56 quad dracut: *** Including module: base ***
Jun 21 16:13:56 quad dracut: *** Including module: fs-lib ***
Jun 21 16:13:56 quad dracut: *** Including module: microcode_ctl-fw_dir_override ***
Jun 21 16:13:56 quad dracut: microcode_ctl module: mangling fw_dir
Jun 21 16:13:56 quad dracut: microcode_ctl: reset fw_dir to "/lib/firmware/updates /lib/firmware"
Jun 21 16:13:56 quad dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel"...
Jun 21 16:13:56 quad dracut: microcode_ctl: kernel version "4.4.228-1.el7.elrepo.x86_64" failed early load check for "intel", skipping
Jun 21 16:13:56 quad dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-2d-07"...
Jun 21 16:13:56 quad dracut: microcode_ctl: configuration "intel-06-2d-07" is ignored
Jun 21 16:13:56 quad dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-4f-01"...
Jun 21 16:13:56 quad dracut: microcode_ctl: configuration "intel-06-4f-01" is ignored
Jun 21 16:13:56 quad dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-55-04"...
Jun 21 16:13:56 quad dracut: microcode_ctl: configuration "intel-06-55-04" is ignored
Jun 21 16:13:56 quad dracut: microcode_ctl: final fw_dir: "/lib/firmware/updates /lib/firmware"
Jun 21 16:13:56 quad dracut: *** Including module: shutdown ***
Jun 21 16:13:56 quad dracut: *** Including modules done ***
Jun 21 16:13:56 quad dracut: Failed to install module nvidia
Jun 21 16:13:56 quad dracut: *** Installing kernel module dependencies and firmware ***
Jun 21 16:13:56 quad dracut: *** Installing kernel module dependencies and firmware done ***
Jun 21 16:13:56 quad dracut: *** Resolving executable dependencies ***
Jun 21 16:13:58 quad dracut: *** Resolving executable dependencies done***
Jun 21 16:13:58 quad dracut: *** Hardlinking files ***
Jun 21 16:13:58 quad dracut: *** Hardlinking files done ***
Jun 21 16:13:58 quad dracut: *** Stripping files ***
Jun 21 16:13:58 quad dracut: *** Stripping files done ***
Jun 21 16:13:58 quad dracut: *** Generating early-microcode cpio image contents ***
Jun 21 16:13:58 quad dracut: *** Constructing GenuineIntel.bin ****
Jun 21 16:13:58 quad dracut: *** No early-microcode cpio image needed ***
Jun 21 16:13:58 quad dracut: *** Store current command line parameters ***
Jun 21 16:13:58 quad dracut: *** Creating image file ***
Jun 21 16:14:10 quad dracut: *** Creating image file done ***
Jun 21 16:14:16 quad dracut: *** Creating initramfs image file '/boot/initramfs-4.4.228-1.el7.elrepo.x86_64.img' done ***
Jun 21 16:14:23 quad yum[19529]: Installed: 2:microcode_ctl-2.1-61.6.el7_8.x86_64
Jun 21 16:14:24 quad dracut: dracut-033-568.el7
Jun 21 16:14:24 quad dracut: Executing: /sbin/dracut -f --kver 3.10.0-1127.10.1.el7.x86_64
Jun 21 16:14:25 quad dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
Jun 21 16:14:25 quad dracut: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
Jun 21 16:14:25 quad dracut: dracut module 'cifs' will not be installed, because command 'mount.cifs' could not be found!
Jun 21 16:14:25 quad dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
Jun 21 16:14:25 quad dracut: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
Jun 21 16:14:26 quad dracut: dracut module 'cifs' will not be installed, because command 'mount.cifs' could not be found!
Jun 21 16:14:26 quad dracut: *** Including module: bash ***
Jun 21 16:14:26 quad dracut: *** Including module: nss-softokn ***
Jun 21 16:14:26 quad dracut: *** Including module: i18n ***
Jun 21 16:14:26 quad dracut: *** Including module: network ***
Jun 21 16:14:28 quad dracut: *** Including module: ifcfg ***
Jun 21 16:14:28 quad dracut: *** Including module: drm ***
Jun 21 16:14:31 quad dracut: *** Including module: plymouth ***
Jun 21 16:14:32 quad dracut: *** Including module: kernel-modules ***
Jun 21 16:14:37 quad dracut: *** Including module: mdraid ***
Jun 21 16:14:37 quad dracut: Skipping udev rule: 64-md-raid.rules
Jun 21 16:14:38 quad dracut: *** Including module: resume ***
Jun 21 16:14:38 quad dracut: *** Including module: rootfs-block ***
Jun 21 16:14:38 quad dracut: *** Including module: terminfo ***
Jun 21 16:14:38 quad dracut: *** Including module: udev-rules ***
Jun 21 16:14:38 quad dracut: Skipping udev rule: 40-redhat-cpu-hotplug.rules
Jun 21 16:14:38 quad dracut: Skipping udev rule: 91-permissions.rules
Jun 21 16:14:38 quad dracut: *** Including module: biosdevname ***
Jun 21 16:14:38 quad dracut: *** Including module: systemd ***
Jun 21 16:14:38 quad dracut: *** Including module: usrmount ***
Jun 21 16:14:38 quad dracut: *** Including module: base ***
Jun 21 16:14:38 quad dracut: *** Including module: fs-lib ***
Jun 21 16:14:38 quad dracut: *** Including module: microcode_ctl-fw_dir_override ***
Jun 21 16:14:38 quad dracut: microcode_ctl module: mangling fw_dir
Jun 21 16:14:38 quad dracut: microcode_ctl: reset fw_dir to "/lib/firmware/updates /lib/firmware"
Jun 21 16:14:38 quad dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel"...
Jun 21 16:14:38 quad dracut: microcode_ctl: intel: caveats check for kernel version "3.10.0-1127.10.1.el7.x86_64" passed, adding "/usr/share/microcode_ctl/ucode_with_caveats/intel" to fw_dir variable
Jun 21 16:14:38 quad dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-2d-07"...
Jun 21 16:14:38 quad dracut: microcode_ctl: configuration "intel-06-2d-07" is ignored
Jun 21 16:14:38 quad dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-4f-01"...
Jun 21 16:14:38 quad dracut: microcode_ctl: configuration "intel-06-4f-01" is ignored
Jun 21 16:14:38 quad dracut: microcode_ctl: processing data directory "/usr/share/microcode_ctl/ucode_with_caveats/intel-06-55-04"...
Jun 21 16:14:38 quad dracut: microcode_ctl: configuration "intel-06-55-04" is ignored
Jun 21 16:14:38 quad dracut: microcode_ctl: final fw_dir: "/usr/share/microcode_ctl/ucode_with_caveats/intel /lib/firmware/updates /lib/firmware"
Jun 21 16:14:38 quad dracut: *** Including module: shutdown ***
Jun 21 16:14:38 quad dracut: *** Including modules done ***
Jun 21 16:14:39 quad dracut: *** Installing kernel module dependencies and firmware ***
Jun 21 16:14:39 quad dracut: *** Installing kernel module dependencies and firmware done ***
Jun 21 16:14:39 quad dracut: *** Resolving executable dependencies ***
Jun 21 16:14:40 quad dracut: *** Resolving executable dependencies done***
Jun 21 16:14:40 quad dracut: *** Hardlinking files ***
Jun 21 16:14:40 quad dracut: *** Hardlinking files done ***
Jun 21 16:14:40 quad dracut: *** Stripping files ***
Jun 21 16:14:41 quad dracut: *** Stripping files done ***
Jun 21 16:14:41 quad dracut: *** Generating early-microcode cpio image contents ***
Jun 21 16:14:41 quad dracut: *** Constructing GenuineIntel.bin ****
Jun 21 16:14:41 quad dracut: *** Constructing GenuineIntel.bin ****
Jun 21 16:14:41 quad dracut: *** Store current command line parameters ***
Jun 21 16:14:41 quad dracut: *** Creating image file ***
Jun 21 16:14:41 quad dracut: *** Creating microcode section ***
Jun 21 16:14:41 quad dracut: *** Created microcode section ***
Jun 21 16:14:59 quad dracut: *** Creating image file done ***
Jun 21 16:15:07 quad dracut: *** Creating initramfs image file '/boot/initramfs-3.10.0-1127.10.1.el7.x86_64.img' done ***
Jun 21 16:15:09 quad microcode_ctl: After installation of a new version of microcode_ctl package,
Jun 21 16:15:09 quad microcode_ctl: initramfs hasn't been re-generated for all the installed kernel packages.
Jun 21 16:15:09 quad microcode_ctl: The following kernel packages have been skipped: kernel-3.10.0-1127.8.2.el7.x86_64 kernel-3.10.0-1127.el7.x86_64 kernel-3.10.0-1062.el7.x86_64.
Jun 21 16:15:09 quad microcode_ctl: Please re-generate initramfs manually for these kernel packages with the
Jun 21 16:15:09 quad microcode_ctl: "dracut -f --kver KERNEL_VERSION" command in order to get the latest
Jun 21 16:15:09 quad microcode_ctl: Intel CPU microcode included into early initramfs image for it, if needed.
Jun 21 16:15:09 quad journal: After installation of a new version of microcode_ctl package,
Jun 21 16:15:09 quad journal: initramfs hasn't been re-generated for all the installed kernel packages.
Jun 21 16:15:09 quad journal: The following kernel packages have been skipped: kernel-3.10.0-1127.8.2.el7.x86_64 kernel-3.10.0-1127.el7.x86_64 kernel-3.10.0-1062.el7.x86_64.
Jun 21 16:15:09 quad journal: Please re-generate initramfs manually for these kernel packages with the
Jun 21 16:15:09 quad journal: "dracut -f --kver KERNEL_VERSION" command in order to get the latest
Jun 21 16:15:09 quad journal: Intel CPU microcode included into early initramfs image for it, if needed.



Summary:
Above I show kernel-lt being installed followed by reinstalling the microcode_ctl package. Reinstalling microcode_ctl clearly triggers the triggerin script and causes the currently running kernel and kernel-lt initramfs images to be updated (the former from microcode_ctl scripts, and the latter from kernel-lt %triggerin script)

There are some errors printed to the console. I think we can ignore the nvidia errors as they are not relevant. I think we need to look at these errors below:

Broadcast message from systemd-journald@quad.pendre.co.uk (Sun 2020-06-21 16:09:41 BST):

dracut[24611]: /lib/modules/4.4.228-1.el7.elrepo.x86_64//modules.dep is missing. Did you run depmod?

/lib/modules/4.4.228-1.el7.elrepo.x86_64//modules.dep is missing. Did you run depmod?
warning: %triggerin(kernel-lt-4.4.228-1.el7.elrepo.x86_64) scriptlet failed, exit status 1

Message from syslogd@quad at Jun 21 16:09:41 ...
 dracut:/lib/modules/4.4.228-1.el7.elrepo.x86_64//modules.dep is missing. Did you run depmod?
Non-fatal <unknown> scriptlet failure in rpm package kernel-lt-4.4.228-1.el7.elrepo.x86_64

The scripts in microcode_ctl package check for modules.dep before running dracut. Presumably the reason it's missing is a missing depmod call so I thin we need to call depmod somewhere.This error was triggered on the installation of kernel-lt package. If we look at the very beginning of the log we see:

Jun 21 16:09:41 quad dracut: dracut-033-568.el7
Jun 21 16:09:41 quad dracut: Executing: /usr/sbin/dracut -f --kver 4.4.228-1.el7.elrepo.x86_64
Jun 21 16:09:41 quad dracut: /lib/modules/4.4.228-1.el7.elrepo.x86_64//modules.dep is missing. Did you run depmod?
Jun 21 16:09:41 quad yum[24506]: Installed: kernel-lt-4.4.228-1.el7.elrepo.x86_64
Jun 21 16:09:42 quad dracut: dracut-033-568.el7
Jun 21 16:09:42 quad dracut: Executing: /sbin/dracut -f /boot/initramfs-4.4.228-1.el7.elrepo.x86_64.img 4.4.228-1.el7.elrepo.x86_64

So it looks like dracut is being run twice. The first instance looks like the call from out %triggerin script (I didn't realise this would run on installation of kernel-lt) and the second instance is kernel-lt creating it's own initramfs inamge (note the different format of the dracut call - the %triggerin script uses --ker). Presumably the second instance is run after a depmod call elsewhere, so I think we need to add depmod to the start of our %triggerin script:

%triggerin -- microcode_ctl
for KVERSION in $(rpm -q --qf '%{v}-%{r}.%{arch}\n' %{name}); do
    %{_sbindir}/depmod $KVERSION
    %{_sbindir}/dracut -f --kver $KVERSION
done

burakkucat

2020-06-21 14:35

administrator   ~0006980

All changes have been reverted and a kernel-lt-4.4.228-2.el7.elrepo package set has been released. [2]

[2] http://lists.elrepo.org/pipermail/elrepo/2020-June/005260.html

burakkucat

2020-06-30 15:31

administrator   ~0007024

A working triggerin script has now been formulated and verified as appropriate --

%triggerin -- microcode_ctl
KVERSION=%{version}-%{release}.%{_target_cpu}
if [ -e "/lib/modules/$KVERSION/modules.dep" ]; then
     %{_sbindir}/dracut -f --kver $KVERSION
fi

It will be added to the specification files for both kernel-lt and kernel-ml, ready for the next build of the respective package sets.

burakkucat

2020-07-01 18:46

administrator   ~0007025

With the recent releases of the kernel-lt-4.4.229-1.el7.elrepo [1] and kernel-ml-4.7.7-1.el7.elrepo [2] package sets this RFE has been fulfilled.

Now closing as resolved/fixed.

[1] http://lists.elrepo.org/pipermail/elrepo/2020-July/005282.html
[2] http://lists.elrepo.org/pipermail/elrepo/2020-July/005286.html

Issue History

Date Modified Username Field Change
2020-06-20 17:11 toracat New Issue
2020-06-20 17:11 toracat Status new => assigned
2020-06-20 17:11 toracat Assigned To => toracat
2020-06-20 17:11 toracat Assigned To toracat => burakkucat
2020-06-20 17:35 burakkucat Note Added: 0006972
2020-06-21 08:24 burakkucat Note Added: 0006974
2020-06-21 08:24 burakkucat Status assigned => feedback
2020-06-21 09:43 pperry Note Added: 0006975
2020-06-21 10:23 burakkucat Status feedback => assigned
2020-06-21 14:35 burakkucat Note Added: 0006980
2020-06-30 15:31 burakkucat Note Added: 0007024
2020-07-01 18:46 burakkucat Note Added: 0007025
2020-07-01 18:46 burakkucat Status assigned => resolved
2020-07-01 18:46 burakkucat Resolution open => fixed