[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: initrd sizes mushroomed several months ago (was: switch from IDE to AHCI...)



On Tue 31 Jan 2023 at 18:31:15 (-0500), Felix Miata wrote:
> David Wright composed on 2023-01-28 09:10 (UTC-0600):
> > On Sat 28 Jan 2023 at 03:15:11 (-0500), Felix Miata wrote:
> 
> >> I thought only Windows was like that, but apparently not always. I keep my
> >> initramfs configuration set to =dep.
>  
> > And is that the reason behind, and cure for, your mushrooming initrd
> > size complaint in https://lists.debian.org/debian-user/2022/11/msg00331.html
>  
> More detail follows:
> 
> # inxi -S --vs
> inxi 3.3.24-00 (2022-12-10)
> System:
>   Host: big31 Kernel: 6.0.0-6-amd64 arch: x86_64 bits: 64 Desktop: Trinity
>     Distro: Debian GNU/Linux bookworm/sid
> # ls -Gg /etc/initramfs-tools/initramfs.conf
> -rw-r--r-- 1 1582 Sep 12 04:21 /etc/initramfs-tools/initramfs.conf
> # diff -u1 /etc/initramfs-tools/.initramfs.conf.07dpkg-dist /etc/initramfs-tools/initramfs.conf
> --- /etc/initramfs-tools/.initramfs.conf.07dpkg-dist    2022-06-20 16:54:17.000000000 -0400
> +++ /etc/initramfs-tools/initramfs.conf 2022-09-12 04:21:09.000000000 -0400
> @@ -19,3 +19,3 @@
> 
> -MODULES=most
> +MODULES=dep
> # ls -Gg /boot/initrd.img-5.16.0-6* /boot/initrd.img-5.19* /boot/initrd.img-6*
> -rw-r--r-- 1  7554203 Apr 22  2022 /boot/initrd.img-5.16.0-6-amd64
> -rw-r--r-- 1  8324160 Sep 12 04:26 /boot/initrd.img-5.19.0-1-amd64
> -rw-r--r-- 1 34597945 Nov  2 17:57 /boot/initrd.img-5.19.0-2-amd64

I was under the impression that mushrooming occurred after 17, yet
your 19…1 is small again.

It's a simple matter to

  $ lsmkinitramfs -l /boot/initrd.img-5.19.0-2-amd64

for 19…1 and 19…2, and compare their contents. Are there more modules
included in the second one, or has each module expanded in size?
Or is something included in the initrd that's unexpected? Has someone
replaced busybox by ~250 different binaries? These are the obvious
things to investigate.

(mc can show you the listing just by tapping F3.)

Cheers,
David.

Reply to: