Wind River Support Network

HomeDefectsSCP7-92
Not to be fixed

SCP7-92 : cc-config: Invalid warning: you have more than one kernel package installed

Created: Apr 1, 2015    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 7.0.0.4
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Userspace

Description

Get warning when run ospp/setup on intel-x86-64 hardware target:
Warning: you have more than one kernel package installed, which may cause problems. You should uninstall unused kernels before running the script, see ECG.

It is reported by line 1124 of script cc-config:
    [ $(rpm -qa | grep kernel | grep -v '^kernel-module' | grep -v 'not inst' | wc -l) -gt 1 ] && {
        Warn "Warning: you have more than one kernel package installed, which may cause problems. You should uninstall unused kernels before running the script, see $_ECG."
    }

The command of checking installed kernel package should be updated in SCP7, because it finds multi kernel:

root@SDP_Wildcat_Pass-3-C1:~# rpm -qa | grep kernel | grep -v '^kernel-module' | grep -v 'not inst' 
kernel-vmlinux-3.14-r0.1.intel_x86_64
kernel-image-3.14.36-grsec-wr7.0.0.0-secure-3.14-r0.1.intel_x86_64
kernel-3.14.36-grsec-wr7.0.0.0-secure-3.14-r0.1.intel_x86_64

Steps to Reproduce

Run ospp/setup and check "Warning" message in cc-config.log
Live chat
Online