Re: initramfs

From: Wakko Warner
Date: Wed May 25 2005 - 14:58:13 EST


Wakko Warner wrote:
> Lennart Sorensen wrote:
> > I didn't know you could use CPIO archives as initrd images. I have used
> > gzip'd ext2 and cramfs (on Debian kernels only so far). Actually I
> > didn't know cpio was even considered a filesystem (and hence would be
> > difficult to mount at all).
>
> Apparently, initrd is just a name and a buffer. Whatever it does with it is
> a different story. If the buffer looks like a cpio archive, it mounts tmpfs
> as / and populates it from the archive. No ramdisk driver, no filesystem
> driver required.

Unfortunately, I noticed that the ramdisk driver has to be compiled in (I
didn't try w/o initrd support). Atleast I dropped ext2 from my compiled in
list (NO filesystems in my kernel!)

Now it would be nice if I could remove rd from the compiled in list as well
(even thought it would only save a few K)

> Unfortunately for me, it doesn't work. I'm still trying to figure out how
> it works.

As I stated earlier it now works. error with my archive.

--
Lab tests show that use of micro$oft causes cancer in lab animals
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/