I need to know what config and data files are pulled in to make the initrd.img-xxx when update-initramfs (mkinitramfs) is executed.
I am having a video driver problem that I have narrowed down to the generation of the initrd.img-xxx after kernel updates. I only get low-resolution single screen VESA, I should have two screen 1080p.
Debian 12 Bookworm, but it's an old install that has been upgraded from earlier versions of Debian. I still have a working fallback kernel from 2 months ago, so I set it as manually installed and held back from upgrades for now.
I created a fresh installation of Debian on a spare drive with its own EFI boot sector and grub and it has no issues. I have, as best as I can query, the same graphics drivers and firmware installed in both installs, and I purged all of them from the old install and reinstalled with apt to get fresh configs if any. I also purged and reinstalled the kernel metapackage and initram tools.
I have two identical kernel builds installed in both the old and new installs. I copied the initrd.img-123 from the new install to the old install. The old install boots correctly with correct graphics using the initrd.img-123 from the new install.
The initrd.img of the new and old install are of different file type when listed by file initrd.img-XXX and they don't unpack the same when attempting to decompress. The new is making zstd files and the old system are appearing as CPIO. (The older fallback kernel also appears to have a CPIO initrd.img but doesn't have problems.)
I have mounted both root partitions and done diff -r on /boot and /etc and cleaned up the most obvious differences with apt-get purging old packages and some manual house keeping. But there is still a lot of noise due to heirloom configurations and settings, much of which I would like to keep if this doesn't drag on too long.
/etc/modprobe.d/somehowamdgpuhad become blacklisted, commented out and it works now.