[root@tina ~]# cd /usr/src/redhat/SOURCES/
[root@tina SOURCES]# ll *.config
-rw-rw-r-- 1 root root 53868 Feb 24 12:55 kernel-2.6.10-i586-smp.config
-rw-rw-r-- 1 root root 53944 Feb 24 12:55 kernel-2.6.10-i586.config
-rw-rw-r-- 1 root root 54088 Mar 3 10:23 kernel-2.6.10-i686-smp.config
-rw-rw-r-- 1 root root 53920 Mar 3 14:07 kernel-2.6.10-i686.config
-rw-rw-r-- 1 root root 51135 Feb 24 12:55 kernel-2.6.10-ia64.config
-rw-rw-r-- 1 root root 52718 Feb 24 12:55 kernel-2.6.10-ppc.config
-rw-rw-r-- 1 root root 51873 Feb 24 12:55 kernel-2.6.10-ppc64.config
-rw-rw-r-- 1 root root 52188 Feb 24 12:55 kernel-2.6.10-ppc64iseries.config
-rw-rw-r-- 1 root root 51460 Feb 24 12:55 kernel-2.6.10-s390.config
-rw-rw-r-- 1 root root 51427 Feb 24 12:55 kernel-2.6.10-s390x.config
-rw-rw-r-- 1 root root 51429 Feb 24 12:55 kernel-2.6.10-x86_64-smp.config
-rw-rw-r-- 1 root root 51464 Feb 24 12:55 kernel-2.6.10-x86_64.config
| En mi caso yo modifque los archivos de configuracion para i696, hay que buscar las lineas comentadas
que contengan RAW y activarlas
| In my case I modify the i686 configs, search all the comented lines with the text RAW
and activate the option
|
change
# CONFIG_RAW_DRIVER is not set
to
CONFIG_RAW_DRIVER=y
|
| Opcionalmente, se puede etiqueta el kernel con nombre. Edita la linea 31 del archivo SPEC para agregarle
un texto que identifique este kernel (RAW en este caso).
| Optionally, you can a mark name to the kernel. Edit line 31 of the SPEC file to add a 'tag'
to identificate this custom kernel (RAW in mi case)
|
[root@tina SPECS]# cd /usr/src/redhat/SPECS
[root@tina SPECS]# vi kernel-2.6.spec
....
%if %{FC3}
%define release %(R="$Revision: 1.770 $"; RR="${R##: }"; echo ${RR%%?})_FC3RAW%{rhbsys}
%endif
...
|
| Creamos (o construimos) el nuevo paquete RPM del kernel.
| Create (build) the new RPM.
|
[root@tina SPECS]# cd /usr/src/redhat/SPECS
[root@tina SPECS]# rpmbuild -bb --target=i686 kernel-2.6.spec
...
. Wait a few hours
....
|
| Al terminar tendras disponibles unos paquetes del kernel parchada.
| After that you have the patched lernel package available
|
[root@tina SPECS]# cd /usr/src/redhat/RPMS/i686
[root@tina i686]# ls
kernel-2.6.10-1.770_FC3RAW.root.i686.rpm
kernel-debuginfo-2.6.10-1.770_FC3RAW.root.i686.rpm
kernel-smp-2.6.10-1.770_FC3RAW.root.i686.rpm
|
| Instale y usa el nuevo kernel como siempre.
| Install and use it as always.
|
|
rpm -ivh kernel-smp-2.6.10-1.770_FC3RAW.root.i686.rpm
|
| util-linux |
| Obtenemos el paquete de fuentes del repositorio, verifica que no exista una version mas nueva.
|
|
|
wget http://download.fedora.redhat.com/pub/fedora/linux/core/3/SRPMS/util-linux-2.12a-16.src.rpm
|
| Instala los fuentes en base al RPM.
|
|
|
rpm -ivh util-linux-2.12a-16.src.rpm
|
| Verificamos el archivo de especificacones del paquete.
|
|
[root@tina ~]# cd /usr/src/redhat/SPECS/
[root@tina SPECS]# ll util*
-rw-rw-r-- 1 root root 47363 Mar 3 09:41 util-linux.spec
|
| Se modifica para habilitar la opcion de agregar el soporte al comando 'raw'.
|
|
vi util-linux.spec
# 'raw' support is deprecated, only ship it if we need compatibility stuff.
%define include_raw 1
|
| Se genera de nuevo el paquete en base a la especificacion corregida.
|
|
|
rpmbuild -bb util-linux-spec
|
| Verificamos los paquetes generados.
|
|
[root@tina SPECS]# cd /usr/src/redhat/RPMS/i386/
[root@tina i386]# ll
total 2264
-rw-rw-rw- 1 root root 1527064 Mar 3 09:47 util-linux-2.12a-16.i386.rpm
|
| Tenemos que instalar esta version parchada encima de la anterior, por eso hay que 'forzar' la instalacion.
|
|
|
rpm -ivh --replacepkgs util-linux-2.12a-16.i386.rpm
|