The first one is easy. For the second one I started from the existing
initrd-XX.img. gunzip d it and mounted it on a directory with the -oloop
option. Then I overwrote the 2 lib/*.o files from the corresponding ones
from the new kernel's /lib/modules directory. Then I unmounted it gzip d it
and renamed it as initrd-2.4.18-24.8.0.img and copied it to boot directory.
Then I booted the new kernel and ran depmod -a.
Finally I uninstalled the old kernel.
I believe this is an overlooked part from RedHat.
--sony
Quote:> --sony
>>Yesterday I downloaded the latest redhat kernel ( 2.4.18-24.8.0 ). But
>>unlike the earlier ones, it didn t update grub.conf. Then I tried to do
>>that manually. But I found out that there is no corresponding initrd.
>>I didn t get any errors while up2date ing. So what I downloaded cannot be
>>corrupt.
>>Any suggestions.
> I solved this by
> 1. manually editing grub.conf and
> 2. creating a new initrd-2.4.18-24.8.0.img
> The first one is easy. For the second one I started from the existing
> initrd-XX.img. gunzip d it and mounted it on a directory with the -oloop
> option. Then I overwrote the 2 lib/*.o files from the corresponding ones
> from the new kernel's /lib/modules directory. Then I unmounted it gzip d it
> and renamed it as initrd-2.4.18-24.8.0.img and copied it to boot directory.
> Then I booted the new kernel and ran depmod -a.
> Finally I uninstalled the old kernel.
> I believe this is an overlooked part from RedHat.
I haven't done the newest-kernel thing yet this week with 2.4.18-24.x.x
(different box), but I think mkinitrd would be easier as long as
mkinitrd works on your system. (Works on all my others.) Less
gunzipping, gzipping, mounting, umounting, cp'ing files, etc. mkinitrd
does it all for you.
mkinitrd is one of those nice extras you get with RH. It's not a
"standard" Linux thing.
1. Linux Kernel Crash - Vanilla 2.4.18/Redhat 2.4.18-5
2. Tar updating on multiple volumes- How?
3. Linux Kernel Crash - Vanilla 2.4.18/Redhat 2.4.18-5 (2nd try =) )
4. Mail
5. what is the difference between 2.4.18-14 and 2.4.18-17.8.0
6. Macromate ethernet card works
7. Very High Load on Disk Activity in 2.4.18 (and 2.4.18-pre8)
8. mounting a mac-disk under linux
9. 2.4.18 Critical issue with Initrd
10. select returning slow on RH 2.4.18-14 (RH 8.0) kernel.
11. version.h missing from 2.4.18?
12. CONFIG_NETLINK missing from Linux 2.4.18?
13. Linux 2.4.18 - the missing patch issue