MKINITFS(1)

πŸ“¦
version 3.14.1 Β· 3 versions
, in alpine 3.24

🌸 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 using gzip (that's the default, bestie), xz, zstd, lz4 or none. 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 host apk keys 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 the features.d search 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 of features="...". 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 /init in 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