Skip to content

Commit

Permalink
Support patching dtb placed in extra section (S9/S9+)
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Jun 10, 2018
1 parent d2e8ecc commit 72a5b83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/boot_patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72a5b83

Please sign in to comment.