Skip to content

Fix No Ramdisk found issue. #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions anykernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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