Support patching dtb placed in extra section (S9/S9+)

This commit is contained in:
topjohnwu 2018-06-10 17:59:50 +08:00
parent d2e8ecc646
commit 72a5b83544

View File

@ -166,8 +166,9 @@ rm -f ramdisk.cpio.orig
# Binary patches
##########################################################################################
if ! $KEEPVERITY && [ -f dtb ]; then
./magiskboot --dtb-patch dtb && ui_print "- Patching fstab in dtb to remove dm-verity"
if ! $KEEPVERITY; then
[ -f dtb ] && ./magiskboot --dtb-patch dtb && ui_print "- Removing dm(avb)-verity from fstab in dtb"
[ -f extra ] && ./magiskboot --dtb-patch extra && ui_print "- Removing dm(avb)-verity from fstab in extra-dtb"
fi
if [ -f kernel ]; then