mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 03:08:59 +00:00
Abort when unsupported dtb is detected
This commit is contained in:
parent
9469e79e3c
commit
6e5df1f06b
@ -183,7 +183,15 @@ rm -f ramdisk.cpio.orig config magisk*.xz
|
||||
#################
|
||||
|
||||
for dt in dtb kernel_dtb extra; do
|
||||
[ -f $dt ] && ./magiskboot dtb $dt patch && ui_print "- Patch fstab in $dt"
|
||||
if [ -f $dt ]; then
|
||||
if ! ./magiskboot dtb $dt test; then
|
||||
ui_print "! Unsupported boot image $dt"
|
||||
abort "! Please restore back to stock boot image"
|
||||
fi
|
||||
if ./magiskboot dtb $dt patch; then
|
||||
ui_print "- Patch fstab in boot image $dt"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -f kernel ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user