diff --git a/anykernel.sh b/anykernel.sh index 9fd766bbc069..9724ccaf9256 100755 --- a/anykernel.sh +++ b/anykernel.sh @@ -44,11 +44,11 @@ ui_print " " " -> ksu_supported: $ksu_supported" $ksu_supported || abort " -> Non-GKI device, abort." # boot install -if [ -L "/dev/block/bootdevice/by-name/init_boot_a" -o -L "/dev/block/by-name/init_boot_a" ]; then - split_boot # for devices with init_boot ramdisk - flash_boot # for devices with init_boot ramdisk +split_boot +if [ -f "split_img/ramdisk.cpio" ]; then + unpack_ramdisk + write_boot else - dump_boot # use split_boot to skip ramdisk unpack, e.g. for devices with init_boot ramdisk - write_boot # use flash_boot to skip ramdisk repack, e.g. for devices with init_boot ramdisk + flash_boot fi ## end boot install