On Sat, Nov 21, 2020 at 02:52:49PM -0500, Stefan Monnier wrote:
> I have two machines with very similar setups: both running Debian i386
> testing, they actually come from the same install done years ago
> and were cloned at some point in time.
> 
> One of the has /boot/initrd.img files that take about 15MB while the
> other has /boot/initrd.img files that take about 30MB (in both cases,
> they are compressed with `lzma`).
> 
> Any idea what this difference could come from (or how I could try and
> track it down) and how I could fix the size to be more like 15MB?

The initramfs is a compressed cpio archive (of the initial file
system at boot time). You can inspect it like so:

  gunzip < /boot/initrd.img-4.19.0-10-amd64 | cpio -it | less

(substitute your real initramfs file name, of course).

Its manufacturing depends on several files (see the FILES section
of your `mkinitramfs' man page.

Perhaps the one image has more kernel modules because your system
thinks it needs them for the hardware?

Cheers
 - t

Attachment: signature.asc
Description: Digital signature

Reply via email to