F3 initrd strangeness

Paul Howarth paul at city-fan.org
Mon Dec 6 19:36:11 UTC 2004


On Mon, 2004-12-06 at 18:48 +0000, T. Horsnell (tsh) wrote:
> Ah - so it is. Thank you. But how does it then get used as a
> boot-time initrd? To see its contents I've had to:
> 
> [root at fw1 ~]$ dd if=/dev/zero of=initrd bs=1300000 count=1
> [root at fw1 ~]$ mke2fs -F -m0 initrd
> [root at fw1 ~]$ mount -t ext2 -o loop initrd /mnt
> [root at fw1 ~]$ cd /mnt
> [root at fw1 ~]$ cpio -i < /root/initrd-2.6.9-1.667

Wouldn't it be easier just to extract the files from the cpioball?

# mkdir /tmp/initrd
# cd /tmp/initrd
# gunzip -c /boot/initrd-2.6.9-1.681_FC3.img | cpio -i

> How does a just-booted kernel do it on FC3?

The same way I'd think.

> Also, there's no linuxrc on it.

No, but there's an init

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-list mailing list