Red Hat Bugzilla – Bug 170109
rebuild from src rpm kernel-2.6.13-1.1526_FC4.src.rpm creates unusable kernel
Last modified: 2015-01-04 17:22:29 EST
Description of problem:
The spec file creates a version name that has a '@' in it. That is, an example
version of an SMP kernel with username 'user' and machine name 'machinename'
would be 2.6.13-1.1526_FC4.user@machinenamesmp.
The directory is made with the correct name. uname -a gives
2.6.13-1.1526_FC4.user which cuts off the '@' and everything afterwards. Upon
boot, no modules are found because the directory name does not match what uname
returns. Is this a uname bug?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Download kernel-2.6.13-1.1526_FC4.src.rpm and do rpm --rebuild of the rpm.
uname returns kernel version information that does not match module directory
names (and perhaps other issues), causing at the very least modprobe to fail on
uname should return the version with all characters including '@' and afterwards.
A sleazy hack/workaround to fix this is to manually edit the SPEC file and
replace the '@' with '_at_' in the version creation. This then creates a
kernel that has loadable drivers.