From e051a204dbbee85ff6c777dfef9c5187383ca711 Mon Sep 17 00:00:00 2001 From: fatalcoder524 <11532648+fatalcoder524@users.noreply.github.com> Date: Fri, 13 Jun 2025 12:57:12 +0530 Subject: [PATCH] Fix No Ramdisk found issue. This fixes the issue for Samsung devices like Samsung S24 devices and other devices with init_boot but single slot. shell: su -c ls -la /dev/block/bootdevice/by-name/init_boot* < lrwxrwxrwx 1 root root 16 1970-12-19 22:58 /dev/block/bootdevice/by-name/init_boot -> /dev/block/sda28 shell: su -c ls -la /dev/block/bootdevice/by-name/boot* < lrwxrwxrwx 1 root root 16 1970-12-19 22:58 /dev/block/bootdevice/by-name/boot -> /dev/block/sda27 Also for devices with Ramdisk in Vendor boot like Pixel 6 series. --- anykernel.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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