initramfs-read-config_rd_-variables-for-initramfs-compression-fix.patch removed from -mm tree
Subject: [folded-merged] initramfs-read-config_rd_-variables-for-initramfs-compression-fix.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 12 Nov 2013 14:43:09 -0800
The patch titled
Subject: initramfs-read-config_rd_-variables-for-initramfs-compression-fix
has been removed from the -mm tree. Its filename was
initramfs-read-config_rd_-variables-for-initramfs-compression-fix.patch
This patch was dropped because it was folded into initramfs-read-config_rd_-variables-for-initramfs-compression.patch
------------------------------------------------------
From: P J P <[email protected]>
Subject: initramfs-read-config_rd_-variables-for-initramfs-compression-fix
I've patched 'gen_initramfs_list.sh' script to check if a selected compression command is accessible or not; And fall-back to the default gzip(1) format when it is not. usr/Makefile also defaults to '.gz' format when all are enabled.
---
scripts/gen_initramfs_list.sh | 19 ++++++++++++------- usr/Makefile | 6 +++--- 2 files changed, 15 insertions(+), 10 deletions(-)
scripts/gen_initramfs_list.sh renamed from scripts/gen_initramfs_list.sh~initramfs-read-config_rd_-variables-for-initramfs-compression-fix +12 -7
@@ -240,13 +240,18 @@ case "$arg" in output_file="$1" cpio_list="$(mktemp ${TMPDIR:-/tmp}/cpiolist.XXXXXX)" output=${cpio_list} - echo "$output_file" | grep -q "\.gz$" && compr="gzip -n -9 -f" - echo "$output_file" | grep -q "\.bz2$" && compr="bzip2 -9 -f" - echo "$output_file" | grep -q "\.lzma$" && compr="lzma -9 -f" - echo "$output_file" | grep -q "\.xz$" && \ - compr="xz --check=crc32 --lzma2=dict=1MiB" - echo "$output_file" | grep -q "\.lzo$" && compr="lzop -9 -f" - echo "$output_file" | grep -q "\.lz4$" && compr="lz4 -9 -f" + echo "$output_file" | grep -q "\.gz$" && [ -x "/bin/gzip" ] \ + && compr="gzip -n -9 -f" + echo "$output_file" | grep -q "\.bz2$" && [ -x "/bin/bzip2" ] \ + && compr="bzip2 -9 -f" + echo "$output_file" | grep -q "\.lzma$" && [ -x "/bin/lzma" ] \ + && compr="lzma -9 -f" + echo "$output_file" | grep -q "\.xz$" && [ -x "/bin/xz" ] \ + && compr="xz --check=crc32 --lzma2=dict=1MiB" + echo "$output_file" | grep -q "\.lzo$" && [ -x "/bin/lzop" ] \ + && compr="lzop -9 -f" + echo "$output_file" | grep -q "\.lz4$" && [ -x "/bin/lz4" ] \ + && compr="lz4 -9 -f" echo "$output_file" | grep -q "\.cpio$" && compr="cat" shift ;;
usr/Makefile renamed from usr/Makefile~initramfs-read-config_rd_-variables-for-initramfs-compression-fix +0 -2
@@ -6,9 +6,6 @@ klibcdirs:; PHONY += klibcdirs -# Gzip -suffix_$(CONFIG_RD_GZIP) = .gz