mkinitramfs -o /boot/initrd.img-6.8.0-45-generic 6.8.0-45-generic

Category: Administration

mkinitramfs -o /boot/initrd.img-6.8.0-45-generic 6.8.0-45-generic

Build a custom initramfs image by hand

Creates an initramfs for kernel 6.8.0-45-generic and writes it to the path after -o, bypassing the normal update-initramfs flow. This is the underlying Debian tool for packing early-boot drivers and scripts into initrd.img. Useful for testing custom configurations or repairing a broken image. Run as root.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.