MKINITRD(8)
π MKINITRD β the dracut manual, bestie edition π
okay so this is the mkinitrd page from the dracut manual, and I'm gonna walk you through it like we're texting at 2am. grab a snack π
β¨ NAME β¨
mkinitrd β it's a compat wrapper, which calls dracut to generate an initramfs.
like. that's the whole personality. it's the middleman. the group-chat relay. it doesn't do the work itself, it just calls dracut and lets it cook. π
β¨ SYNOPSIS β¨
mkinitrd [OPTION...] [<initrd-image>] <kernel-version>
see how <initrd-image> is in brackets? that's the "optional queen" energy. <kernel-version> is not optional, bestie, you have to tell it which kernel you're talking about. π
β¨ DESCRIPTION β¨
mkinitrd creates an initramfs image <initrd-image> for the kernel with version <kernel-version> by calling "dracut".
that's it. that's the job. it's giving personal assistant who forwards your emails. π
Important, and I mean it: if a more fine grained control over the resulting image is needed, "dracut" should be called directly. no cap. if you want the β¨artisanalβ¨ custom build, go straight to the source, don't make the wrapper do it. π
β¨ OPTIONS β¨
the full menu, no skips, no substitutions:
--versionβ print info about the version. just the tea on which version you're running. π«-v,--verboseβ increase verbosity level. more talking. more lore. turn it up. π’-f,--forceβ overwrite existing initramfs file. it will absolutely bulldoze what's already there, so know that going in. π--image-versionβ append the kernel version to the target image, so you get<initrd-image>-<kernel-version>. cute little name tag for your file. π·οΈ--with=<module>β add the kernel module<module>to the initramfs. bring your friend along. π«Ά--preload=<module>β preload the kernel module<module>in the initramfs before any other kernel modules are loaded. this can be used to ensure a certain device naming, which should in theory be avoided and the use of symbolic links in/devis encouraged. (so: it works, but the manpage is literally asking you to use symlinks in/devinstead. respect the elder wisdom. πΈ)--nocompressβ do not compress the resulting image. raw. unfiltered. no zip. β¨--helpβ print a help message and exit. your little escape hatch. π¦
β¨ AVAILABILITY β¨
the mkinitrd command is part of the dracut package and is available from https://dracut.wiki.kernel.org π
β¨ AUTHORS β¨
Harald Hoyer π
β¨ SEE ALSO β¨
dracut(8) β the main character. go read that one too, iykyk. π
and that's the whole page, bestie!! this was the dracut manual page for mkinitrd, dated 2019-11-12 β go forth and build your initramfs, you absolute icon πβ¨π
π¦ where this page comes from
- ubuntu jammy: dracut-core 051-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms