diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-18 02:32:47 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-07-18 02:32:47 +0200 |
commit | d94f83a2bec20a65c3f06b78fff301802d55df95 (patch) | |
tree | 3e6bb4c3044311de9d440d59d56d17795995f904 | |
parent | Change --microcode-initramfs handling (diff) | |
download | genkernel-d94f83a2bec20a65c3f06b78fff301802d55df95.tar.gz genkernel-d94f83a2bec20a65c3f06b78fff301802d55df95.tar.bz2 genkernel-d94f83a2bec20a65c3f06b78fff301802d55df95.zip |
gen_initramfs.sh: create_initramfs(): Output reason when initramfs compression is skipped
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-x | gen_initramfs.sh | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 1479a5d..8419a20 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -1713,15 +1713,12 @@ create_initramfs() { lz4) compress_ext='.lz4' compress_cmd="${cmd_lz4} -f -9 -l -q" ;; esac - if [ -n "${compression}" ] - then - print_info 1 "$(get_indent 1)>> Compressing cpio data (${compress_ext}) ..." - print_info 3 "COMMAND: ${compress_cmd} $CPIO" 1 0 1 - ${compress_cmd} "${CPIO}" || gen_die "Compression (${compress_cmd}) failed" - mv -f "${CPIO}${compress_ext}" "${CPIO}" || gen_die "Rename failed" - else - print_info 1 "$(get_indent 1)>> Not compressing cpio data ..." - fi + print_info 1 "$(get_indent 1)>> Compressing cpio data (${compress_ext}) ..." + print_info 3 "COMMAND: ${compress_cmd} $CPIO" 1 0 1 + ${compress_cmd} "${CPIO}" || gen_die "Compression (${compress_cmd}) failed" + mv -f "${CPIO}${compress_ext}" "${CPIO}" || gen_die "Rename failed" + else + print_info 3 "$(get_indent 1)>> --no-compress-initramfs is set; Skipping compression of initramfs ..." fi ## To early load microcode we need to follow some pretty specific steps |