On Sat 21 Nov 2020 at 21:47:02 (+0000), Andy Smith wrote: > > On Sat, Nov 21, 2020 at 02:52:49PM -0500, Stefan Monnier wrote: > > 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? > > A common question during install is whether to build an initramfs > that has all drivers as modules, or one that only has the "targeted" > drivers as modules. That could be the difference you are seeing. > > $ grep MODULES /etc/initramfs-tools/initramfs.conf
Note that /etc/initramfs-tools/conf.d/ files override this, particularly /etc/initramfs-tools/conf.d/driver-policy which IIRC is written by the installer. > will tell you what it is currently set to, and if you change it and > then do > > # update-initramfs -u -k <version> > > or > > # update-initramfs -u -k all > > then you can compare the differences. > > If that doesn't show it, you may need to take the initramfs apart to > compare contents. Cheers, David.

