HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mkinitfs — Generate an initramfs on Alpine Linux. More information: <https://manned.org/mkinitfs>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandalpineclimkinitfslinuxmoreinitramfsgenerate
linux

Problem

How to use the mkinitfs command: Generate an initramfs on Alpine Linux. More information: <https://manned.org/mkinitfs>.

Solution

mkinitfs — Generate an initramfs on Alpine Linux. More information: <https://manned.org/mkinitfs>.

Generate an initramfs with the features specified in /etc/mkinitfs/mkinitfs.conf:
mkinitfs


Use a different configuration file:
mkinitfs -c {{path/to/config}}


Compress the initramfs using the specified compression algorithm (default: gzip):
mkinitfs -C {{gzip|xz|zstd|lz4|none}}


List files that will be included in the initramfs image:
mkinitfs -l


List all available features:
mkinitfs -L

Code Snippets

Generate an initramfs with the features specified in `/etc/mkinitfs/mkinitfs.conf`

mkinitfs

Use a different configuration file

mkinitfs -c {{path/to/config}}

Compress the initramfs using the specified compression algorithm (default: gzip)

mkinitfs -C {{gzip|xz|zstd|lz4|none}}

List files that will be included in the initramfs image

mkinitfs -l

List all available features

mkinitfs -L

Context

tldr-pages: linux/mkinitfs

Revisions (0)

No revisions yet.