From 944da1fc61bd64a47c2bc6415da5e5d5611b6ff5 Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Tue, 14 Jul 2020 16:17:30 +0200 Subject: gen_initramfs.sh: create_initramfs(): Move and unify validation of --compress-initramfs-type to determine_real_args() This will allow us to error out early if required user space tool needed to compress initramfs based on specified --compress-initramfs-type is missing or selected type is invalid/unsupported. Best/fastest list is based on results from [Link1][Link2][Link3]. Link1: https://events.static.linuxfound.org/sites/events/files/lcjpcojp13_klee.pdf Link2: https://kernel.ubuntu.com/~cking/boot-speed-eoan-5.3/kernel-compression-method.txt Link3: https://lwn.net/Articles/817134/ Signed-off-by: Thomas Deutschmann --- doc/genkernel.8.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'doc/genkernel.8.txt') diff --git a/doc/genkernel.8.txt b/doc/genkernel.8.txt index 494a29c..40c591e 100644 --- a/doc/genkernel.8.txt +++ b/doc/genkernel.8.txt @@ -598,9 +598,13 @@ NOTE: System.map filename and System.map symlink name must be different. Deprecated alias for *--*[*no-*]*compress-initramfs*. *--compress-initramfs-type*=:: - Compression type for initramfs (best, xz, lzma, bzip2, gzip, lzop, lz4). - "Best" causes selection of the best available algorithm that is selected - in your kernel configuration. + Compression type for initramfs (best, bzip2, fastest, gzip, lz4, lzma, lza, xz). ++ +*best* will select the algorithm providing best compression +from those selected in your kernel configuration. ++ +*fastest* will select the algorithm providing fastest decompression +from those selected in your kernel configuration. *--strip*=:: Strip debug symbols from none, all, installed kernel (obsolete) or -- cgit v1.2.3-65-gdbad