MKINITRD(8)

πŸ“¦ version 051, in ubuntu jammy

πŸ’– MKINITRD β€” bestie edition πŸ’–

okay so you're in the mkinitrd manual, section 8, part of the dracut family. buckle up, this one's a little retro but she's iconic πŸ’…


✨ NAME ✨

mkinitrd-suse β€” she's a compat wrapper, a little bestie-in-the-middle whose whole job is to call dracut and generate an initramfs for you 🫢


✨ SYNOPSIS ✨

mkinitrd [OPTION...]

✨ DESCRIPTION ✨

mkinitrd creates an initramfs image <initrd-image> for the kernel with version <kernel-version>, and the way she does it is by calling dracut for you. no cap, that's the whole trick ✨

important bestie!! this version of mkinitrd exists purely for compatibility with older versions of mkinitrd. if you want more fine-grained control over the resulting image, you should call dracut directly. like, actually directly. don't be shy, she's right there πŸŽ€

✨ OPTIONS ✨

  • -R, --version β€” print info about the version. cute, quick, done πŸ’–
  • -k <kernel_list> β€” the list of kernel images for which initrd files get created (relative to boot_dir). the image name has to start with this string. defaults to vmlinux on ppc/ppc64, image on s390/s390x, and vmlinuz for everything else. yes, every architecture gets her own little default, we love that for them 🌈
  • -i <initrd_list> β€” list of file names (relative to boot_dir) for the initrd. the positions have to match the kernel_list β€” like, match them up properly, don't be chaotic πŸ’€ defaults to initrd.
  • -m <module_list> β€” modules to include in the initrd. defaults to the INITRD_MODULES variable in /etc/sysconfig/kernel.
  • -f <feature_list> β€” features to enable for the initrd. in general, mkinitrd configures the initrd for the root device it is started from. with this option you can enable additional features on top. extra. we love extra πŸ’…
  • -b <bootdir> β€” boot directory, defaults to /boot, and that's where the initrd gets created.
  • -d <root_device> β€” root device. defaults to the device from which the root_dir is mounted; overwrites the rootdev environment variable if it's set. so like, she overrules the env var. periodt πŸ‘‘
  • -s <size> β€” add splash animation and bootscreen to the initrd. aesthetic boot sequence, we're obsessed 🌸
  • -D <interface> β€” run dhcp on the specified interface (for example "eth0").
  • -I <interface> β€” configure the specified interface statically.
  • -a <acpi_dsdt> β€” attach a compiled ACPI DSDT (Differentiated System Description Table) to the initrd. this replaces the DSDT of the BIOS. defaults to the ACPI_DSDT variable in /etc/sysconfig/kernel. she's swapping out the BIOS table, very main character energy ✨
  • -M <map> β€” the System.map file to use.
  • -B β€” don't run the update-bootloader(8) script after the initrd(s) have been created. this is useful if you call mkinitrd(8) for anything other than the running system. like, if you're doing surgery on some other system, don't let her touch your bootloader, mmkay? πŸ™ˆ
  • -A β€” create a so-called "monster initrd" which includes all available features and modules. internally this calls dracut with --no-hostonly and --no-hostonly-cmdline instead of the default --hostonly and --hostonly-cmdline. monster. initrd. she's huge and she ate πŸ”₯
  • -v, --verbose β€” increase verbosity level. more words, more info, more everything πŸ’œ
  • -L β€” disable logging to /var/log/YaST2/mkinitrd.log. useful for testing when you don't want to clutter the system log. keeping it lowkey πŸ¦‹
  • --help β€” print a help message and exit. the classic.

✨ AVAILABILITY ✨

the mkinitrd command is part of the dracut package and is available from https://dracut.wiki.kernel.org 🌐


✨ AUTHORS ✨

Harald Hoyer, Hannes Reinecke β€” legends, fr fr πŸ‘‘


✨ SEE ALSO ✨


and that's the whole page bestie πŸŽ€ this one's from the dracut package, dated 2018-08-30, so go forth and build your initramfs. slay, stay hydrated, and remember: when in doubt, call dracut directly πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from