Subj : LFS - About initial ramdisks
To : Andrew Alt
From : Alan Ianson
Date : Fri Feb 24 2023 02:44 pm
> Anyone else have a problem with the LFS section on creating an initrd? Me
> and a friend tried the mkinitramfs from
>
https://www.linuxfromscratch.org/blfs/view/svn/postlfs/initramfs.html
> When we ran it, we wound up with a 770Mb file. When we extracted it with
> cpio, it only extracted about 64K bytes. We tried a few times and the
> results were consistent.
> It only contained a few files, related to microcode (I don't have access to
> his computer right now so I can't be more specific).
That sounds like the microcode bits were prepended to the initrd file.
If that is the case then it's hard to inspect the rest of the contents of that file, at least in the usual way.
I don't normally use an initramfs but I had one with a gentoo install and I found the same thing. Gentoo's initramfs tool (i forget what it called now) created a huge initramfs but I was only able to see the intel-ucode bits of it when I tried to look inside of it.
It must have contained a lot of modules but it did boot up just fine.
--- BBBS/Li6 v4.10 Toy-6
* Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)