From d155da52ce9ee7c0d31775ad2b18f5950aa9faac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=8B=E9=A1=B5?= <31466456+canyie@users.noreply.github.com> Date: Sat, 2 Jul 2022 06:15:54 +0800 Subject: [PATCH] More friendly and clear error message --- scripts/boot_patch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 43ffab3a8..c334e8d84 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -185,8 +185,8 @@ rm -f ramdisk.cpio.orig config magisk*.xz for dt in dtb kernel_dtb extra; do if [ -f $dt ]; then if ! ./magiskboot dtb $dt test; then - ui_print "! Unsupported boot image $dt" - abort "! Please restore back to stock boot image" + ui_print "! Boot image $dt was patched by old (unsupported) Magisk" + abort "! Please try again with *unpatched* boot image" fi if ./magiskboot dtb $dt patch; then ui_print "- Patch fstab in boot image $dt"