Sudo zypper patch - failed to install kernel modules

Hi there,

I’m running OpenSUSE 13.2 from a Dell Precision laptop and when I ran the command sudo zypper patch, it installed my patches correctly and then after installing the patches, it displayed the following:


(33/33) Installing: flash-player-gnome-11.2.202.491-2.64.1 .........................................................................[done]
Output of dracut-037-17.15.1.x86_64.rpm %posttrans script:
    Creating initrd: /boot/initrd-3.16.7-21-desktop
    Executing: /usr/bin/dracut --logfile /var/log/YaST2/mkinitrd.log --force /boot/initrd-3.16.7-21-desktop 3.16.7-21-desktop
    *** Including module: bash ***
    *** Including module: warpclock ***
    *** Including module: i18n ***
    *** Including module: ifcfg ***
    *** Including module: drm ***
    *** Including module: plymouth ***
    *** Including module: crypt ***
    *** Including module: dm ***
    Skipping udev rule: 64-device-mapper.rules
    Skipping udev rule: 60-persistent-storage-dm.rules
    Skipping udev rule: 55-dm.rules
    *** Including module: kernel-modules ***
    Failed to install module sd_mod
    Failed to install module hid_generic
    Failed to install module unix
    Failed to install module ehci-hcd
    Failed to install module ehci-pci
    Failed to install module ohci-hcd
    Failed to install module uhci-hcd
    Failed to install module atkbd
    Failed to install module i8042
    Failed to install module usbhid
    Failed to install module hid-apple
    Failed to install module hid-cherry
    Failed to install module hid-logitech
    Failed to install module hid-microsoft
    Omitting driver i2o_scsi
    Failed to install module ext4
    Failed to install module LVM2_member
    Failed to install module swap
    Failed to install module isw_raid_member
    Failed to install module isw_raid_member
    Failed to install module ext4
    Failed to install module crypto_LUKS
    *** Including module: lvm ***
    Skipping udev rule: 64-device-mapper.rules
    Skipping udev rule: 56-lvm.rules
    Skipping udev rule: 60-persistent-storage-lvm.rules
    *** Including module: mdraid ***
    Skipping udev rule: 64-md-raid.rules
    *** Including module: resume ***
    *** Including module: rootfs-block ***
    *** Including module: terminfo ***
    *** Including module: udev-rules ***
    Skipping udev rule: 91-permissions.rules
    Skipping udev rule: 80-drivers-modprobe.rules
    *** Including module: biosdevname ***
    *** Including module: systemd ***
    Failed to install module autofs4
    Failed to install module ipv6
    *** Including module: usrmount ***
    *** Including module: base ***
    *** Including module: fs-lib ***
    *** Including module: shutdown ***
    *** Including module: suse ***
    *** Including modules done ***
    *** Installing kernel module dependencies and firmware ***
    *** Installing kernel module dependencies and firmware done ***
    *** Resolving executable dependencies ***
    *** Resolving executable dependencies done***
    *** Hardlinking files ***
    *** Hardlinking files done ***
    *** Stripping files ***
    *** Stripping files done ***
    *** Generating early-microcode cpio image ***
    *** Constructing GenuineIntel.bin ****
    *** Store current command line parameters ***
    Stored kernel commandline:
     rd.luks.uuid=luks-6bc451d6-165c-4e61-9a9d-0dd918c067d9
     rd.lvm.lv=system/rootvol 
     rd.lvm.lv=system/swapvol 
     rd.md.uuid=a2f068ec:9b5d5d97:40ec2318:45cd05bd 
     resume=/dev/mapper/system-swapvol
    root=/dev/mapper/system-rootvol rootflags=rw,relatime,stripe=64,data=ordered rootfstype=ext4
    *** Creating image file ***
    *** Creating image file done ***
    Some kernel modules could not be included: 
    sd_mod
    hid_generic
    unix
    ehci-hcd
    ehci-pci
    ohci-hcd
    uhci-hcd
    atkbd
    i8042
    usbhid
    hid-apple
    hid-cherry
    hid-logitech
    hid-microsoft
    ext4
    LVM2_member
    swap
    isw_raid_member
    isw_raid_member
    ext4
    crypto_LUKS
    autofs4
    ipv6
    Creating initrd: /boot/initrd-3.16.7-7-desktop
    Executing: /usr/bin/dracut --logfile /var/log/YaST2/mkinitrd.log --force /boot/initrd-3.16.7-7-desktop 3.16.7-7-desktop
    *** Including module: bash ***
    *** Including module: warpclock ***
    *** Including module: i18n ***
    *** Including module: ifcfg ***
    *** Including module: drm ***
    *** Including module: plymouth ***
    *** Including module: crypt ***
    *** Including module: dm ***
    Skipping udev rule: 64-device-mapper.rules
    Skipping udev rule: 60-persistent-storage-dm.rules
    Skipping udev rule: 55-dm.rules
    *** Including module: kernel-modules ***
    Failed to install module sd_mod
    Failed to install module hid_generic
    Failed to install module unix
    Failed to install module ehci-hcd
    Failed to install module ehci-pci
    Failed to install module ohci-hcd
    Failed to install module uhci-hcd
    Failed to install module atkbd
    Failed to install module i8042
    Failed to install module usbhid
    Failed to install module hid-apple
    Failed to install module hid-cherry
    Failed to install module hid-logitech
    Failed to install module hid-microsoft
    Omitting driver i2o_scsi
    Failed to install module ext4
    Failed to install module LVM2_member
    Failed to install module swap
    Failed to install module isw_raid_member
    Failed to install module isw_raid_member
    Failed to install module ext4
    Failed to install module crypto_LUKS
    *** Including module: lvm ***
    Skipping udev rule: 64-device-mapper.rules
    Skipping udev rule: 56-lvm.rules
    Skipping udev rule: 60-persistent-storage-lvm.rules
    *** Including module: mdraid ***
    Skipping udev rule: 64-md-raid.rules
    *** Including module: resume ***
    *** Including module: rootfs-block ***
    *** Including module: terminfo ***
    *** Including module: udev-rules ***
    Skipping udev rule: 91-permissions.rules
    Skipping udev rule: 80-drivers-modprobe.rules
    *** Including module: biosdevname ***
    *** Including module: systemd ***
    Failed to install module autofs4
    Failed to install module ipv6
    *** Including module: usrmount ***
    *** Including module: base ***
    *** Including module: fs-lib ***
    *** Including module: shutdown ***
    *** Including module: suse ***
    *** Including modules done ***
    *** Installing kernel module dependencies and firmware ***
    *** Installing kernel module dependencies and firmware done ***
    *** Resolving executable dependencies ***
    *** Resolving executable dependencies done***
    *** Hardlinking files ***
    *** Hardlinking files done ***
    *** Stripping files ***
    *** Stripping files done ***
    *** Generating early-microcode cpio image ***
    *** Constructing GenuineIntel.bin ****
    *** Store current command line parameters ***
    Stored kernel commandline:
     rd.luks.uuid=luks-6bc451d6-165c-4e61-9a9d-0dd918c067d9
     rd.lvm.lv=system/rootvol 
     rd.lvm.lv=system/swapvol 
     rd.md.uuid=a2f068ec:9b5d5d97:40ec2318:45cd05bd 
     resume=/dev/mapper/system-swapvol
    root=/dev/mapper/system-rootvol rootflags=rw,relatime,stripe=64,data=ordered rootfstype=ext4
    *** Creating image file ***
    *** Creating image file done ***
    Some kernel modules could not be included: 
    sd_mod
    hid_generic
    unix
    ehci-hcd
    ehci-pci
    ohci-hcd
    uhci-hcd
    atkbd
    i8042
    usbhid
    hid-apple
    hid-cherry
    hid-logitech
    hid-microsoft
    ext4
    LVM2_member
    swap
    isw_raid_member
    isw_raid_member
    ext4
    crypto_LUKS
    autofs4
    ipv6
    Update bootloader...
    Perl-Bootloader: 2015-07-18 23:43:00 <3> pbl-3888.2 Core::GRUB2::GrubDev2UnixDev.252: Error: did not find a match for hd0 in the device map

There are some running programs that might use files deleted by recent upgrade. You may wish to check and restart some of them. Run 'zypper ps' to list these programs.


Will this lead to any problems? Is there any way I can get it to successfully install the kernel modules, and what do I need to do for this?

It probably won’t cause any problems. As far as I know, this is just dracut thinking aloud as it generates the “initrd”.

I looked at one of the examples from your output:

Failed to install module crypto_LUKS

Now I happen to be using an encrypted LVM, so I am using LUKS encryption. Checking the output of the “lsmod” command, I see that “crypto_LUKS” is not installed in the kernel. So presumably it isn’t needed. My guess is that the module is for use when the computer has built in hardware crypto support. So the module doesn’t load here, since there isn’t any crypto hardware. The crypto instead is done in software.

It is probably the same with all of the modules that you see listed as failed to install. They are probably modules for specific hardware that you don’t have.

Another example. According to your output, “uhci-hcd” failed to install. That’s the driver for USB2.

Checking my system, I see that “uhci-hcd” is not loaded. That’s because my hardware has USB3 support, which uses “xhci-hcd”. And the “xhci-hcd” driver is also used for the USB2 only ports on this box.

The real test is whether your system is working properly.

Yes, my system does appear to be running fine. However, from what I can tell in the output of uname -r, it appears to be using an older kernel, 3.16.7-21-desktop. I’m also using an encrypted lvm using luks encryption, I haven’t had a problem with it so far. How do I update my kernel to a newer version?

For opensuse 13.2, that’s the latest kernel.

If you want a newer kernel, then you can add the kernels repo, and install it from there.

I think that’s “http://download.opensuse.org/repositories/Kernel:/stable/standard/”.

Use Yast Software Repositories to add it. Then you can use Yast to find the latest kernel and install it if you want.

Unless you are having problems – typically with newer hardware not fully supported your current kernel – I would stay with the 3.16.7 kernels.

Hi there,
i’m having also the same problem here - on different kernels.

But i’ve found out, that it is introduced with newer version of dracut, i’m having dracut-037-17.15.1.x86_64.
I’ve downgraded to dracut-037-17-6.1.x86_64 , called “mkinitrd” and it looks fine.

Again, i’ve upgraded to newer version ( zypper lu → DELTA )- Some kernel modules could not be included.
I’Ve deinstalled dracut ( rpm -e dracut --nodeps ), installed it again ( zypper install dracut ).

Again:
Some kernel modules could not be included:

*** Including module: kernel-modules ***
sd_mod
hid_generic
unix
ehci-hcd
ehci-pci
ohci-hcd
uhci-hcd
atkbd
i8042
usbhid
hid-apple
hid-cherry
hid-logitech
hid-microsoft

*** Including module: systemd ***
autofs4
ipv6

System is still bootable, everything is running fine.
So, whats newer ( better? ) with dracut-037-17.15.1.x86_64, someone knows?

For me it feels like newer dracut is showing here kernel buildins, e.g.
zcat /proc/config.gz | grep -i _ipv6= => CONFIG_IPV6=y
*Thinking: y = buildin, m = module.
*
**But perhaps i’m completly wrong …
Thank you for any hint/advice!
**

I think dracut is just more noisy now. From the package changelog:


* Wed Jun 03 2015 trenn@suse.de
...
- Enabled Warning for failed kernel modules per default (bnc#886839)
  * Add 0169-Enabled-Warning-for-failed-kernel-modules-per-defaul.patch


I suppose adding those modules did/does fail with the older dracut too, it just doesn’t tell you about it… :wink:

That’s what i would hear lol!
I was just a little bit nervous as it hits directly the “system boot”.
And as i can not really find out something going wrong with it, it’s ok for me!
Thank you for your help & information :slight_smile:

It’s probably just as you say: those kernel modules are built-in to the kernel, so they don’t have to (and cannot) be added to the initrd anyway.

Probably dracut shouldn’t even try to add them in this case.

But I would guess that this just went unnoticed up to now, the messages might even lead to fixing that.
Maybe that’s even the actual reason for the change, but the bug report is not publicly accessible unfortunately.