aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-07-14 16:17:30 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-07-16 16:29:15 +0200
commit944da1fc61bd64a47c2bc6415da5e5d5611b6ff5 (patch)
tree961006f79e6366ed2a0619b889fe6fa7f90a288d /genkernel
parentgen_determineargs.sh: determine_real_args(): Fix unsetting toolchain variable (diff)
downloadgenkernel-944da1fc61bd64a47c2bc6415da5e5d5611b6ff5.tar.gz
genkernel-944da1fc61bd64a47c2bc6415da5e5d5611b6ff5.tar.bz2
genkernel-944da1fc61bd64a47c2bc6415da5e5d5611b6ff5.zip
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 <whissi@gentoo.org>
Diffstat (limited to 'genkernel')
-rwxr-xr-xgenkernel1
1 files changed, 1 insertions, 0 deletions
diff --git a/genkernel b/genkernel
index 0856e256..c0fd96d0 100755
--- a/genkernel
+++ b/genkernel
@@ -69,6 +69,7 @@ source "${_GENKERNEL_CONF}" || small_die "Could not read ${_GENKERNEL_CONF}"
LOGLEVEL=${LOGLEVEL:-1}
# Start sourcing other scripts
+source "${GK_SHARE}"/defaults/compression_methods.sh || small_die "Could not read '${GK_SHARE}/defaults/compression_methods.sh'"
source "${GK_SHARE}"/defaults/software.sh || small_die "Could not read '${GK_SHARE}/defaults/software.sh'"
source "${GK_SHARE}"/defaults/config.sh || small_die "Could not read '${GK_SHARE}/defaults/config.sh'"
source "${GK_SHARE}"/gen_funcs.sh || small_die "Could not read '${GK_SHARE}/gen_funcs.sh'"