mkosi-initrd(1)

πŸ’… mkosi-initrd(1) β€” the general commands manual, but make it cute

okay so bestie, welcome to mkosi-initrd(1) 🌸 this one lives in the General Commands Manual section, and honestly? she's giving "small wrapper, big main character energy." ✨


πŸŽ€ NAME πŸŽ€

mkosi-initrd β€” builds initrds or unified kernel images for the current system, using mkosi. yes, the current one. the one you're literally on right now. icon behavior tbh πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

mkosi-initrd [options...]

that's it. that's the whole vibe. options go in, initrd comes out. πŸ”₯


✨ DESCRIPTION ✨

so mkosi-initrd is a wrapper on top of mkosi β€” think of mkosi as the genius older sister and mkosi-initrd as the chill little sibling who handles the boring parts for you 🫢

her whole job? simplifying the generation of initrds and Unified Kernel Images for the current running system. no cap, that's the entire mission statement. slay. πŸ‘‘


πŸ’– OPTIONS πŸ’–

  • --kernel-version=, -k β€” which kernel version do we look in for the kernel modules to include? πŸ‘€ defaults to the kernel version of the running system (uname -r), because obviously we assume you like the one you booted. (note the = on the long form, bestie, it wants the value.)
  • --format=, -t β€” the output format, pick one:
    • cpio β€” a CPIO archive
    • uki β€” a unified kernel image, with the image chilling in the .initrd PE section
    • directory β€” generates the image directly in a local directory

defaults to cpio. periodt. πŸ’…

  • --output=, -o β€” the name to use for the generated output image file or directory (depends on your format, iykyk). defaults to initrd.
  • --output-dir=, -O β€” path to the directory where all the generated artifacts get placed. defaults to the current working directory, cute and simple πŸŽ€
  • --generic, -g β€” builds a generic initrd without host-specific kernel modules. the whole point: it should let your local system boot on different hardware 🌈 but β€” and this is the important but β€” it's still tied to the kernel version of the running system, or whatever you set with --kernel-version=. so, portable-ish. not fully untethered. know the difference bestie πŸ’€
  • --profile= β€” sets the profiles to enable for the initrd. by default, all profiles are disabled πŸ™ˆ and here's the menu:
    • lvm β€” enables support for LVM
    • network β€” enables support for network via systemd-networkd
    • nfs β€” enables support for NFS. heads up: it requires networking in the initrd, either via the network profile or some other custom method of your choosing 🧚
    • pkcs11 β€” enables support for PKCS#11
    • plymouth β€” provides a graphical interface at boot (animation + password prompt) πŸŽ€βœ¨
    • raid β€” enables support for RAID arrays
  • --debug β€” enable additional debugging output. more words! more info! 🫢
  • --debug-shell β€” spawns a debug shell in the sandbox if a sandboxed command fails. very "when things go wrong, we go in" energy πŸ”
  • --debug-sandbox β€” runs mkosi-sandbox with strace. yes. that strace. peak investigative girlboss behavior πŸ’€
  • --show-documentation, -D β€” shows the man page for mkosi-initrd. meta. love that for us πŸ“–
  • --show-summary, -S β€” shows the summary of configuration. a lil recap moment πŸ’…
  • --version β€” shows the package version. 🏷️
  • --help, -h β€” shows brief usage information. the classic. the blueprint. the "help me help you" 🫢

🌸 CONFIGURATION 🌸

okay so config for mkosi-initrd gets read from these directories, in increasing order of priority:

  • /usr/lib
  • /usr/local/lib
  • /run
  • /etc

so yes, /etc wins. it always wins. main character directory fr πŸ‘‘

under any of those directories you can use:

  • mkosi.conf.d/ β€” for config files
  • mkosi.extra/ β€” for extra files to include in the initrd
  • and so on ✨

for the full details, go read the Configuration Settings and FILES sections in mkosi(1). she has lore. πŸ¦‹

for configuration files, use drop-ins β€” like /etc/mkosi-initrd/mkosi.conf.d/local.conf πŸŽ€ that's the pattern, memorize it, it's giving "just put it in the right folder and everything works."

⭐ SEE ALSO ⭐

  • mkosi(1) β€” the big sister. go read her. πŸ’œ

and that's the page, bestie 🫢 signing off from the mkosi-initrd(1) manual page in the General Commands Manual β€” that footer is genuinely just mkosi-initrd(1), no date, no version stamp, that's the whole send-off, so consider this your official cute goodbyeeee πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from