Printing HW configuration on boot

From: Artem S. Tashkinov
Date: Sat Oct 14 2023 - 15:57:44 EST


Hi everyone,

dmesg is an invaluable source of information about the system however
oftentimes it's the only source of information and it gets really hard
to extract information from it.

It would be great if someone coded the following feature: a printout of
system configuration before the kernel runs /sbin/init, e.g. something
like this:

======= Detected hardware configuration =======
Arch: x86-64, EFI, Secure boot enabled
CPU: Intel/AMD Something; X cores/Y threads
GPU: AMD/Intel/NVIDIA VEN_ID/DEV_ID, VRAM MB
RAM: 32614128K/33414620K available, ECC enabled
Motherboard: Vendor, Model, BIOS revision
Console: i915drmfb, 1024x768@24bit
===============================================

Some (all?) of this information is already there but it's hard to find
and read.

Thanks a ton,
Artem