[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] nirur:
:D Thanks this worked. Rebooted a few times to test. Suppose you can include this in the TWRP. Do you need any additional information? The android version is 8.1.0 and MIUI bersion is 10.0.1 Stable. Model is M1804E4A.

Output for your reference:

D:\temp\rooting>adb shell twrp_persist
- Unpacking boot image /dev/block/mmcblk0p68
Parsing boot image: [/dev/block/mmcblk0p68]
HEADER_VER [0]
KERNEL_SZ [49737942]
RAMDISK_SZ [1652823]
SECOND_SZ [0]
EXTRA_SZ [0]
RECOV_DTBO_SZ [0]
OS_VERSION [8.1.0]
PATCH_LEVEL [2018-09]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 earlycon=msm_serial_dm,0xc170000 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 sched_enable_hmp=1 sched_enable_power_aware=1 service_locator.enable=1 swiotlb=1 androidboot.configfs=true androidboot.usbcontroller=a800000.dwc3 buildvariant=user]
CHECKSUM [1b2ba2df0ac46d0183d5de1afa7845098c9df904]
DTB [35839821]
KERNEL_FMT [gzip]
RAMDISK_FMT [gzip]
- Removing flash_recovery service if exists
Loading cpio: [ramdisk.cpio]
Extract [acct] to [acct]
Extract [bt_firmware] to [bt_firmware]
Extract [bugreports] to [bugreports]
Extract [cache] to [cache]
Extract [charger] to [charger]
Extract [config] to [config]
Extract [d] to [d]
Extract [data] to [data]
Extract [default.prop] to [default.prop]
Extract [dev] to [dev]
Extract [dsp] to [dsp]
Extract [etc] to [etc]
Extract [firmware] to [firmware]
Extract [init] to [init]
Extract [init.environ.rc] to [init.environ.rc]
Extract [init.mishow.ctl.rc] to [init.mishow.ctl.rc]
Extract [init.miui.early_boot.sh] to [init.miui.early_boot.sh]
Extract [init.miui.google_revenue_share.rc] to [init.miui.google_revenue_share.rc]
Extract [init.miui.google_revenue_share_v2.rc] to [init.miui.google_revenue_share_v2.rc]
Extract [init.miui.post_boot.sh] to [init.miui.post_boot.sh]
Extract [init.miui.rc] to [init.miui.rc]
Extract [init.offline.log.rc] to [init.offline.log.rc]
Extract [init.rc] to [init.rc]
Extract [init.recovery.hardware.rc] to [init.recovery.hardware.rc]
Extract [init.recovery.qcom.rc] to [init.recovery.qcom.rc]
Extract [init.usb.configfs.rc] to [init.usb.configfs.rc]
Extract [init.usb.rc] to [init.usb.rc]
Extract [init.zygote32.rc] to [init.zygote32.rc]
Extract [init.zygote64_32.rc] to [init.zygote64_32.rc]
Extract [mnt] to [mnt]
Extract [oem] to [oem]
Extract [persist] to [persist]
Extract [proc] to [proc]
Extract [res] to [res]
Extract [res/images] to [res/images]
Extract [res/images/charger] to [res/images/charger]
Extract [res/images/charger/battery_fail.png] to [res/images/charger/battery_fail.png]
Extract [res/images/charger/battery_scale.png] to [res/images/charger/battery_scale.png]
Extract [sbin] to [sbin]
Extract [sbin/charger] to [sbin/charger]
Extract [sbin/setlockstate] to [sbin/setlockstate]
Extract [sbin/ueventd] to [sbin/ueventd]
Extract [sbin/watchdogd] to [sbin/watchdogd]
Extract [sdcard] to [sdcard]
Extract [storage] to [storage]
Extract [sys] to [sys]
Extract [system] to [system]
Extract [ueventd.rc] to [ueventd.rc]
Extract [vendor] to [vendor]
Extract [verity_key] to [verity_key]
Found service flash_recovery in init.rc. Commenting it out...
/sbin/twrp_persist: line 90: init.rc: not found
Loading cpio: [ramdisk.cpio]
Remove [init.rc]
Dump cpio: [ramdisk.cpio]
Loading cpio: [ramdisk.cpio]
Add entry [init.rc] (0644)
Dump cpio: [ramdisk.cpio]
- Repacking boot image
Parsing boot image: [/dev/block/mmcblk0p68]
HEADER_VER [0]
KERNEL_SZ [49737942]
RAMDISK_SZ [1652823]
SECOND_SZ [0]
EXTRA_SZ [0]
RECOV_DTBO_SZ [0]
OS_VERSION [8.1.0]
PATCH_LEVEL [2018-09]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 earlycon=msm_serial_dm,0xc170000 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 sched_enable_hmp=1 sched_enable_power_aware=1 service_locator.enable=1 swiotlb=1 androidboot.configfs=true androidboot.usbcontroller=a800000.dwc3 buildvariant=user]
CHECKSUM [1b2ba2df0ac46d0183d5de1afa7845098c9df904]
DTB [35839821]
KERNEL_FMT [gzip]
RAMDISK_FMT [gzip]
Repack to boot image: [new-boot.img]
HEADER_VER [0]
KERNEL_SZ [49733277]
RAMDISK_SZ [1649528]
SECOND_SZ [0]
EXTRA_SZ [0]
RECOV_DTBO_SZ [0]
OS_VERSION [8.1.0]
PATCH_LEVEL [2018-09]
PAGESIZE [4096]
NAME []
CMDLINE [console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 earlycon=msm_serial_dm,0xc170000 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 sched_enable_hmp=1 sched_enable_power_aware=1 service_locator.enable=1 swiotlb=1 androidboot.configfs=true androidboot.usbcontroller=a800000.dwc3 buildvariant=user]
CHECKSUM [4e42c740782d6f2d49a94ec7ffa022b59c]
- Flashing new boot image
- Storing new boot sha1