AK2: allow forcing repack ramdisk compression format of choice

- ramdisk_compression=auto; (or undefined) in anykernel.sh is the default, automatically repacking with the detected unpack format
- changing auto to gz lzo lzma xz bz2 lz4-l (for lz4 legacy) or lz4 force the repack as that format
This commit is contained in:
osm0sis committed 2017-11-22 13:28:47 -04:00
1 parent e6b8326197
commit 0535fd7ca0
1 file changed
+4 -1
+4 -1
View File
@@ -164,7 +164,10 @@ write_boot() {
dtb=`ls *-dtb`;
dtb="--dt $split_img/$dtb";
fi;
compext=`echo $split_img/boot.img-ramdisk.cpio.* | rev | cut -d. -f1 | rev`;
case $ramdisk_compression in
auto|"") compext=`echo $split_img/boot.img-ramdisk.cpio.* | rev | cut -d. -f1 | rev`;;
*) compext=$ramdisk_compression;;
esac;
case $compext in
gz) repackcmd="gzip";;
lzo) repackcmd="lzo";;