MKINITRD(8)
π 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 ofmkinitrdexists purely for compatibility with older versions ofmkinitrd. if you want more fine-grained control over the resulting image, you should calldracutdirectly. 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 toboot_dir). the image name has to start with this string. defaults tovmlinuxonppc/ppc64,imageons390/s390x, andvmlinuzfor everything else. yes, every architecture gets her own little default, we love that for them π-i<initrd_list>β list of file names (relative toboot_dir) for the initrd. the positions have to match thekernel_listβ like, match them up properly, don't be chaotic π defaults toinitrd.-m<module_list>β modules to include in the initrd. defaults to theINITRD_MODULESvariable in/etc/sysconfig/kernel.-f<feature_list>β features to enable for the initrd. in general,mkinitrdconfigures 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 theroot_diris mounted; overwrites therootdevenvironment 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 theACPI_DSDTvariable in/etc/sysconfig/kernel. she's swapping out the BIOS table, very main character energy β¨-M<map>β theSystem.mapfile to use.-Bβ don't run theupdate-bootloader(8)script after the initrd(s) have been created. this is useful if you callmkinitrd(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 callsdracutwith--no-hostonlyand--no-hostonly-cmdlineinstead of the default--hostonlyand--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
- 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