What Do I Do If the RUN Package Is Unavailable Because the RUN Package Is Not Uninstalled When Upgrading the OS Kernel?

Symptom

The kernel is upgraded in the environment installed with the .run package, but an environment startup error occurs, as shown in Figure 1. The problem persists after a new .run package is installed. The cause is that the .ko Driver has been packed to the rootfs of the kernel during the installation of the .run package.

Figure 1 .run package unavailable

Solution

  1. Manually uninstall the .ko driver.
    1. Query the .ko driver list.

      lsmod|grep drv

    2. Uninstall all the queried .ko drivers. Separate .ko drivers with spaces in the uninstallation command. For example, to uninstall .ko drivers ko1 and ko2, run the following command:

      rmmod ko1 ko2

  2. Pack the rootfs.

    dracut --force

  3. Restart the environment.

    reboot