Skip to main content

mkinitfs

Build the initramfs a Core Linux kernel boots with.

mkinitfs [-b <basedir>] [-o <outfile>] [-l] [<kernelversion>]

Arguments​

ArgumentDescription
<kernelversion>Kernel to build for. Default: the one in /lib/modules, if there is just one

Options​

OptionDescription
-b <basedir>The system to build from. Default: /
-o <outfile>Where to write it. Default: /boot/initramfs-<flavor>
-lList what would go in, write nothing
-h, --helpShow help
-V, --versionShow the version

Files​

FileDescription
/etc/mkinitfs/modulesMore modules, one per line

These modules are always included, for a virtio, NVMe or SATA root disk on ext4: virtio_pci virtio_blk virtio_scsi nvme ahci sd_mod ext4.

Example​

Run it inside the new system:

(chroot)
mkinitfs

See also​