AK3: fix support for forced uncompressed cpio ramdisk repacks
- resolves https://github.com/osm0sis/AnyKernel3/commit/698682123053cab9e3277c9c9df783a97b3e8958 "IMPORTANT NOTE" 1
This commit is contained in:
1 file changed
+5
-2
+5
-2
@@ -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...";
|
||||
|
||||
Reference in new issue
Block a user