On Mon, Aug 02, 2021 at 11:11:11AM -0700, David Christensen wrote: > On 8/1/21 3:51 PM, Greg Wooledge wrote: > > On Sun, Aug 01, 2021 at 03:29:07PM -0700, David Christensen wrote: > > > 2021-08-01 13:52:37 root@dipsy ~ > > > > # gunzip -c /boot/initrd.img-4.19.0-17-amd64 | cpio -i -d -H newc > > > --no-absolute-filenames > > > 246741 blocks > > > > That may not extract the full content of the initrd. It only reads > > one of the concatenated CPIO archives. Also, the first archive may not > > be gzipped. Also also, hard-coding the input archive format is weird; > > I'd prefer to let cpio auto-detect it. > > > > To get a full listing, either use "lsinitramfs -l", or write a command > > that reads *all* of the CPIO archives, not just the first one. I'd > > advise using lsinitramfs -l, because it'll be a lot easier. > > > Please post your console session showing how you created > initrd.img-5.10.0-8-amd64.txt.gz.
I didn't. It was created automatically when I installed dracut-core. Prior to that, it was created automatically every time I did anything with apt-get which touched the "low level stuff" (kernel, firmware, microcode, busybox, other tools that live in the initrd, and so on). Here's an example: unicorn:~$ sudo apt-get purge dracut-core cryptsetup [sudo] password for greg: Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: cryptsetup* cryptsetup-initramfs* cryptsetup-run* dracut-core* 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded. After this operation, 1,847 kB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 157820 files and directories currently installed.) Removing cryptsetup-run (2:2.3.5-1) ... Removing cryptsetup-initramfs (2:2.3.5-1) ... update-initramfs: deferring update (trigger activated) Removing cryptsetup (2:2.3.5-1) ... Removing dracut-core (051-1) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for initramfs-tools (0.140) ... update-initramfs: Generating /boot/initrd.img-5.10.0-8-amd64 (Reading database ... 157360 files and directories currently installed.) Purging configuration files for cryptsetup (2:2.3.5-1) ... Purging configuration files for dracut-core (051-1) ... Purging configuration files for cryptsetup-initramfs (2:2.3.5-1) ... unicorn:~$ ls -l /boot/initrd* -rw-r--r-- 1 root root 30924690 Jan 29 2021 /boot/initrd.img-4.19.0-13-amd64 -rw-r--r-- 1 root root 34310935 Jul 21 07:30 /boot/initrd.img-5.10.0-7-amd64 -rw-r--r-- 1 root root 39491974 Aug 2 14:26 /boot/initrd.img-5.10.0-8-amd64 Gah. It's still inflated.