On 16 Mar, Jeff Waugh wrote:
> <quote who="[EMAIL PROTECTED]">
>
> > > 3. Regenerate the initrd image
> > > mkinitrd -o /boot/initrd.img-2.4.17-586tsc /lib/modules/2.4.17-586tsc
> > > 4. Run lilo
> >
> > I used
> > mkinitrd /boot/initrd-2.4.17-cdrw 2.4.17-cdrw
>
> -o is to output the initrd image, the parameter is the modules directory.
> So do this:
>
> mkinitrd -o /boot/initrd-2.4.17-cdrw /lib/modules/2.4.17-cdrw
That doesn't work for me!
# mkinitrd -o /boot/initrd-2.4.17-cdrw.img.2 2.4.17-cdrw
usage: mkinitrd [--version] [-v] [-f] [--ifneeded] [--preload <module>]
[--omit-scsi-modules] [--omit-raid-modules] [--with=<module>]
[--image-version] [--fstab=<fstab>] [--nocompress] <initrd-image>
<kernel-version>
(ex: mkinitrd /boot/initrd-2.2.5-15.img 2.2.5-15)
# mkinitrd --version
mkinitrd: version 3.2.6
In http://www.linuxdoc.org/HOWTO/mini/LILO-2.html I've also found
the initrd section, and tried the tests it says in there, and
everything seems to check out. A find on the initrd filesystem shows:
/mnt/tmp
/mnt/tmp/lib
/mnt/tmp/lib/raid1.o
/mnt/tmp/bin
/mnt/tmp/bin/nash
/mnt/tmp/bin/insmod
/mnt/tmp/sbin
/mnt/tmp/sbin/bin
/mnt/tmp/sbin/modprobe
/mnt/tmp/etc
/mnt/tmp/dev
/mnt/tmp/dev/console
/mnt/tmp/dev/null
/mnt/tmp/dev/ram
/mnt/tmp/dev/systty
/mnt/tmp/dev/tty1
/mnt/tmp/dev/tty2
/mnt/tmp/dev/tty3
/mnt/tmp/dev/tty4
/mnt/tmp/dev/md0
/mnt/tmp/loopfs
/mnt/tmp/proc
/mnt/tmp/sysroot
/mnt/tmp/linuxrc
Which may be a clue. I built my kernel with raid1 compiled in, not as
a module. But the mkinitrd complained that it couldn't find the raid1
module. So I re-configured the kernel makefiles to have raid1 as a
module, rebuilt just the modules, and did a make modules-install.
Same problem.
For some reason the modules_install didn't copy the drivers/md/raid1.o
file into the /lib/modules/2.4.17-cdrw/... directory, so I copied it
manually myself, and then re-ran the mkinitrd, and it *seemed* happy,
and the /boot/initrd-2.2.5-15.img file *seems* to be a proper ext2
filesystem.
luke
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug