Building kernels and moving to another machine.

Alexander Dalloz ad+lists at uni-x.org
Mon Nov 22 02:39:11 UTC 2004


Am Mo, den 22.11.2004 schrieb Bill Somerville um 0:53:

> Using FC2, I would like to build a modular kernel on one machine and 
> transfer it to a different target machine(s).

> Does anyone know a way to make kernel 'make rpm' build a useable rpm?
> 
> I know I can write a script to make the initrd on the target but what is 
> the point of the 'make rpm' option if you can't use the result?
> 
> Bill Somerville

Worth having a look at the kernel SRC.RPM of Fedora Core and it's spec
file. The rpm section in the makefile the vanilla kernel source comes
with is just basic. Btw. the initial ramdisk image is created at install
time, see

rpm -q --scripts kernel-smp-2.6.9-1.6_FC2

postinstall scriptlet (using /bin/sh):
[ -x /sbin/new-kernel-pkg ] && /sbin/new-kernel-pkg --mkinitrd --depmod
--install 2.6.9-1.6_FC2smp

Alexander


-- 
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.9-1.6_FC2smp 
Serendipity 03:35:30 up 1 day, 22:23, load average: 0.27, 0.33, 0.33 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20041122/3b9bd8b9/attachment-0002.bin 


More information about the users mailing list