RedHat issues while upgrading

Latest response

After attempting to remediate a (kernel)vulnerability on my stand-alone, the device fails to reboot.

HIGH
RHSA-2017:2795 (103494)
Remote package installed: kernel-2.6.32-696.el6
Should be : kernel-2.6.32-696.10.3.el6
Remote package installed: kernel-firmware-2.6.32-696.el6
Should be : kernel-firmware-2.6.32-696.10.3.el6
Remote package installed: kernel-headers-2.6.32-696.el6
Should be kernel-headers-2.6.32-696.10.3.el6

Problem: The following error is what I am getting after attempting to update on my testing laptop.

Warning: erase unlink of /lib/modules/2.6.32.696.el6.x86_64/modules.order failed: No such file or directory.
Warning: erase unlink of /lib/modules/2.6.32.696.el6.x86_64/modules.networking failed: No such file or directory.
Warning: erase unlink of /lib/modules/2.6.32.696.el6.x86_64/modules.modesetting failed: No such file or directory.
Warning: erase unlink of /lib/modules/2.6.32.696.el6.x86_64/modules.drm failed: No such file or directory.
Warning: erase unlink of /lib/modules/2.6.32.696.el6.x86_64/modules.block failed: No such file or directory.
E: Failed to install /lib/libsoftokn3.so
Mkinitrd failed
Warning: %posttrans(kernel-2.6.32-696.10.3.el6.x86_64) scriptlet failed, exit status 1
Behavior: System fails to reboot
Message I am receiving:
After update, kernel panic at boot with error: Unable to mount root fs on unknown-block(0,0)

Verified appropiate steps in reference to https://access.redhat.com/solutions/2376641'

When I reboot it, it fails.

Your help would be greatly appreciated.
Thanks

Responses

I forgot to mention. we just upgraded out RedHat from 6.7 to 6.9. I am able to successfully remediate all other vulnerabilities with the exception of the kernel.

Paul,

You could reboot to older kernel and check if you see corresponding 'vmlinuz-2.6.32......' file pointing to the new kernel version. Otherwise, you could share those file that you find under /boot directory. The kernel need to have all files such as 'initramfs.xxx', 'system-map.xxxx', 'sysvers.xxxx', etc., for proper function ( to boot into), otherwise, it would fail to bootup. If you see all these files for the newer kernel then you would need run 'dracut' command pointing to new kernel to rebuild initramfs image file.

# dracut -f -v /boot/initramfs-2.6.32-696.10.3.el6.x86_64.img 2.6.32-696.10.3.el6.x86_64 

Please check and run this command pointing to the correct kernel (newer) as shown. I assume "2.6.32-696.10.3.el6.x86_64" is the new kernel in your case.

Thanks for your quick response Sandashiva. Can't thank you enough for your time.

The existing kernel(only) I have installed is 2.6.32-696.el6.x86_64. My latest Nessus can results wants me to upgrade to "......10.3.el6.x86_64"

the output of that command # dracut -f -v /boot/initramfs-2.6.32-696.10.3.el6.x86_64.img 2.6.32-696.10.3.el6.x86_64

E: Failed to install /lib/libsoftokn3.so. do I need to search for "libsoftokn3.so" and install it?

It looks me that the system is not finding 32bit version of the package 'nss-softokn', check if the system got one of those, otherwise, install it. After this you may try re-creating initramfs image and check if that works.

ok... thanks. I also Verified the following files below are located in the /boot directory.

initramsfs.2.6.32-696.el6.x86_64.img System.map-2.6.2-696.el6.x86_64 symvers-2.6.32-696.el6.x86_64.gz

using the command find/ -name libsoftokn3.so, I was able to locate it under the /usr/lib64 directory.

Referring to the top, "E: Failed to install /lib/libsoftokn3.so" does this mean "libsoftokn3.so" was installed in the wrong directory?

No, the one you found is a 64 bit library and your system needs a 32 bit one, so, please install 32bit version of the package 'nss-softokn'...

thanks! Do you know where I can find it? I've been searching hard for it.

Hi Paul,

You can download the nss-softokn-3.14.3-17.el6.i686.rpm package installation file(s) here :

https://access.redhat.com/downloads/content/nss-softokn/3.14.3-17.el6/i686/fd431d51/package

Cheers :)
Christian

Perhaps it may be easier to reinstall kernel-2.6.32-696.10.3.el6.

Thanks Akemi. I've been looking hard for it. Do you know where I can find it?

Hi Paul,

You can download the kernel-2.6.32-696.10.3.el6.i686.rpm package installation file(s) here :

https://access.redhat.com/downloads/content/kernel/2.6.32-696.10.3.el6/i686/fd431d51/package

Cheers :)
Christian

thanks but do I still need to install nss-softokn-3.14.3-17.el6.i686.rpm prior hand?

Yes, as per the error message mkinitrd failed due to unable to find the 32-bit library of that package.

Hi Paul,

I was just wondering if you were able to resolve your issue because I'm experiencing the same thing on my test server. I followed the steps that others have posted and still get a kernel panic when rebooting. Any help/guidance would be greatly appreciated. Thanks.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.