MKINITFS(1)
πΈ mkinitfs β the manual, bestie edition β¨
Okay so this is the MKINITFS(1) manual page (it lives in the "Early startup" section, slay) and I'm about to give you the whole tea on mkinitfs. No cap. π
π NAME π
mkinitfs β Generate an initramfs. That's the whole vibe, bestie. π
β¨ SYNOPSIS β¨
mkinitfs [OPTIONS] [KERNELVERSION]
π¦ DESCRIPTION π¦
Okay so here's the tea: mkinitfs collects files from the root file system and creates a compressed initramfs from it. Periodt. Like, it's literally giving "build me a tiny early-userspace world" energy and I'm obsessed. π
π OPTIONS π
-b BASEDIRβ Don't use files from the root file system β use the specified path instead. It's giving "bring your own base directory" energy. π«Ά-c CONFIGFILEβ Use configfile instead of/etc/mkinitfs/mkinitfs.conf. Lowkey a vibe check for your config. β¨-C ALGORITHMβ Compress the initramfs usinggzip(that's the default, bestie),xz,zstd,lz4ornone. Pick your fighter. π₯-f FSTABβ Use fstab instead of/usr/share/mkinitfs/fstab. Highkey useful if your fstab is doing main character things. π-F FEATURESβ Use the specified features. Simple as that, fr fr. π§-hβ Print this help. The classic "help me help you" moment. π-i INITFILEβ Use initfile as init instead of/usr/share/mkinitfs/initramfs-init. Not me swapping the first program in early userspace like it's nothing. π-kβ Do not clean up temporary files. Leave the mess, iconic behavior. π-Kβ Also copy hostapkkeys to the initramfs. Gotta bring the keys to the party. π-lβ Do a dry run and only list files that would have been used. Literally the "window shopping" flag. ποΈ-Lβ List all available features. The way this just shows you the whole menu, slay. π-nβ Don't include kernel modules or firmware into the initramfs. Minimalist era. β¨-o OUTFILEβ Set another outfile. Choose your own destination, bestie. π¦-P FEATURESDIRβ Prepend thefeatures.dsearch path. Use this if you want to define your own features outside of the system-wide directories. Custom features? We love to see it. π-qβ Quiet mode. Shhh, it's giving stealth. π€«-sβ Include modloop signature. Signature move, literally. π-t TMPDIRβ Use tempdir when creating the initramfs image. Temporary but make it fashion. πΈ
π FILES π
/etc/mkinitfs/mkinitfs.confβ Default configuration file. It contains the list of default features in the format offeatures="...". Your starting point, bestie. π/etc/mkinitfs/features.d/FEATURE.modulesβ Contains a list of kernel modules. Using the feature will cause the given kernel modules to be included in the initramfs. The modules are given by their filesystem paths, relative to/lib/modules/KERNELVERSION/. Like a guest list for modules. π«Ά/etc/mkinitfs/features.d/FEATURE.filesβ Contains a list of absolute file names which will be included into the generated initramfs if the feature is enabled. The "you're invited" list for files. β¨/usr/share/mkinitfs/initramfs-initβ Shell script which will be placed as/initin the initramfs. This functions as the first executed program in early userspace. The main character of early boot, no cap. π
π AUTHOR π
Written by Natanael Copa <ncopa@alpinelinux.org>, Timo TerΓ€s <timo.teras@iki.fi> and others. Legends, fr fr. π
π REPORTING BUGS π
Alpine Linux GitLab: https://gitlab.alpinelinux.org/alpine/mkinitfs/-/issues β go snitch (kindly) if something's off. π
π SEE ALSO π
mkinitfs-bootparam(7) β the sequel you didn't know you needed. π
This page is from mkinitfs 3.14.1-r0, dated July 2018 β it's the MKINITFS(1) manual, iykyk. Mwah, love you, bye! πβ¨
π¦ where this page comes from
- alpine 3.24: mkinitfs-doc 3.14.1-r0 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms