summaryrefslogtreecommitdiff
path: root/tools/ak3-core.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ak3-core.sh')
-rwxr-xr-xtools/ak3-core.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh
index 4b4c86b..8e05e08 100755
--- a/tools/ak3-core.sh
+++ b/tools/ak3-core.sh
@@ -209,7 +209,7 @@ repack_ramdisk() {
# flash_boot (build, sign and write image only)
flash_boot() {
- local varlist kernel ramdisk cmdline part0 part1 signfail pk8 cert avbtype;
+ local varlist kernel ramdisk cmdline part0 part1 nocompflag signfail pk8 cert avbtype;
cd $split_img;
if [ -f "$bin/mkimage" ]; then
@@ -287,7 +287,10 @@ flash_boot() {
for i in dtb recovery_dtbo; do
test "$(eval echo \$$i)" -a -f $i && cp -f $(eval echo \$$i) $i;
done;
- $bin/magiskboot repack $bootimg $home/boot-new.img;
+ case $ramdisk_compression in
+ none|cpio) nocompflag="-n";;
+ esac;
+ $bin/magiskboot repack $nocompflag $bootimg $home/boot-new.img;
fi;
if [ $? != 0 ]; then
abort "Repacking image failed. Aborting...";