Commit e161ca0b authored by Natanael Copa's avatar Natanael Copa
Browse files

mkinitfs: add 'none' compression

fixes #30
parent bc570c23
......@@ -15,7 +15,7 @@ Dont use files from the root file system, use specified path instead.
Use configfile instead of \fI@sysconfdir@/mkinitfs.conf\fR.
Compress initramfs using gzip (default), xz, zstd or lz4.
Compress initramfs using gzip (default), xz, zstd, lz4 or none.
\fB\-f\fR \fIFSTAB\fR
Use fstab instead of \fI@datadir@/fstab\fR.
......@@ -194,7 +194,7 @@ usage: mkinitfs [-hkKLln] [-b basedir] [-c configfile] [-F features] [-f fstab]
-b prefix files and kernel modules with basedir
-c use configfile instead of $config
-C initramfs compression (gzip|xz|zstd|lz4 defaults to $initfscomp)
-C initramfs compression (gzip|xz|zstd|lz4|none defaults to $initfscomp)
-f use fstab instead of $fstab
-F use specified features
-h print this help
......@@ -303,6 +303,7 @@ case "$initfscomp" in
xz) cmd_exists xz; comp="xz -C crc32 -T 0" ;;
zstd) cmd_exists zstd; comp="zstd -19" ;;
lz4) cmd_exists lz4; comp="lz4 --favor-decSpeed --best -lz" ;;
none) comp="cat";;
*) echo "Initramfs compression \"$initfscomp\" not supported!"; exit 1 ;;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment