mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 02:25:28 +00:00
More friendly and clear error message
This commit is contained in:
parent
9c5b131913
commit
d155da52ce
@ -185,8 +185,8 @@ rm -f ramdisk.cpio.orig config magisk*.xz
|
|||||||
for dt in dtb kernel_dtb extra; do
|
for dt in dtb kernel_dtb extra; do
|
||||||
if [ -f $dt ]; then
|
if [ -f $dt ]; then
|
||||||
if ! ./magiskboot dtb $dt test; then
|
if ! ./magiskboot dtb $dt test; then
|
||||||
ui_print "! Unsupported boot image $dt"
|
ui_print "! Boot image $dt was patched by old (unsupported) Magisk"
|
||||||
abort "! Please restore back to stock boot image"
|
abort "! Please try again with *unpatched* boot image"
|
||||||
fi
|
fi
|
||||||
if ./magiskboot dtb $dt patch; then
|
if ./magiskboot dtb $dt patch; then
|
||||||
ui_print "- Patch fstab in boot image $dt"
|
ui_print "- Patch fstab in boot image $dt"
|
||||||
|
Loading…
Reference in New Issue
Block a user