I found this in twrp official web site. I guess this is the reason that every time i try to install twrp and after that, my device get bootloop.So how can i disable dm-verity?(Sorry, my English may bad because we don't use that in our country)
The command fastboot flash --disable-verity --disable-verification boot boot.img as I understand it must be performed with an unmodified stock boot.img file. I Also wondered myself how to get my hands on an unmodified boot.img file. But then I realised that I can extract the boot.img from the tool I use to re-install the stock ROM (I referenced the tool in one of my previous replies).