More friendly and clear error message

This commit is contained in:
残页 2022-07-02 06:15:54 +08:00 committed by GitHub
parent 9c5b131913
commit d155da52ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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"