mkinitfs
Build the initramfs a Core Linux kernel boots with.
mkinitfs [-b <basedir>] [-o <outfile>] [-l] [<kernelversion>]
Arguments
| Argument | Description |
|---|---|
<kernelversion> | Kernel to build for. Default: the one in /lib/modules, if there is just one |
Options
| Option | Description |
|---|---|
-b <basedir> | The system to build from. Default: / |
-o <outfile> | Where to write it. Default: /boot/initramfs-<flavor> |
-l | List what would go in, write nothing |
-h, --help | Show help |
-V, --version | Show the version |
Files
| File | Description |
|---|---|
/etc/mkinitfs/modules | More 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