28 October 2009

// // Leave a Comment

Issue with installing kernel using yumex-2.9.x in Fedora 12

There is a selinux issues in Yum Extender 2.9.x in Fedora 12 (Beta) and F11.

It will give problems when installing new kernels

you will get messages like this

13:33:46 : YUM: /sbin/new-kernel-pkg: line 292: /sbin/depmod: Permission denied
13:34:05 : YUM: /usr/bin/ldd: line 118: /sbin/udevd: Permission denied

It is caused by /usr/share/yumex/yumex-yum-backend is not labeled correctly.

Run the following commands as root to fix it.

chcon system_u:object_r:rpm_exec_t:s0 /usr/share/yumex/yumex-yum-backend
restorecon -r /usr/share/yumex

I have requested it to be added to standard SELinux policy in Fedora.


To fix an already installed kernel in F12.

$ rpm -q kernel-PAE --scripts | grep -e '--install'
/sbin/new-kernel-pkg --package kernel-PAE --mkinitrd --dracut --depmod .......

copy the /sbin/new-kernel-pkg command and run it as root.

/sbin/new-kernel-pkg --package kernel-PAE --mkinitrd --dracut --depmod .......

if you are using a non PAE system then substitute 'kernel-PAE' with 'kernel' in the rpm -q command.