[SuperSU] flamepjlh:
Sorry I didn't explain that clear. It is an engineering device running Android 7.1.1 with Qualcomm SDM660. No module number. That why I can flash the image by fastboot.

If the changes are supported already, I think that should be fine. But it cannot find init.environ.rc file the and here is the log:

----- patch check -----
Loading from cpio:[init.rc] ...
Finding [daemonsu]
-!Found
Finding [SuperSU:PATCH]
-!Found
Result: not patched
----- verity_key -----
Removing [verity_key] ...
----- fstab: [etc/recovery.fstab] -----
Loading from cpio:[etc/recovery.fstab] ...
Finding [,support_scfs]
-!Found
Finding [,verify]
-Found@0029 [/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1 wait,slotselect,verify]
Remove@0029 [/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1 wait,slotselect,verify]
Insert@0029 [/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1 wait,slotselect]
Finding [,verify]
-!Found
Finding [,forceencrypt]
-!Found
Finding [,forcefdeorfbe]
-!Found
Finding [,fileencryption]
-!Found
Finding [ro,!rw,!atime|relatime]
-Found@0029 [/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1 wait,slotselect]
Remove@0029 [/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1 wait,slotselect]
Insert@0029 [/dev/block/bootdevice/by-name/system / ext4 ro,noatime,barrier=1 wait,slotselect]
Finding [ro,!rw,!atime|relatime]
-!Found
Saving to cpio:[etc/recovery.fstab] ...
----- fstab: [fstab.qcom] -----
Loading from cpio:[fstab.qcom] ...
Finding [,support_scfs]
-!Found
Finding [,verify]
-Found@0008 [/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1,discard wait,slotselect,verify]
Remove@0008 [/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1,discard wait,slotselect,verify]
Insert@0008 [/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1,discard wait,slotselect]
Finding [,verify]
-!Found
Finding [,forceencrypt]
-Found@0009 [/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard,lazytime wait,check,forceencrypt=footer,crashcheck]
Remove@0009 [/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard,lazytime wait,check,forceencrypt=footer,crashcheck]
Insert@0009 [/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard,lazytime wait,check,encryptable=footer,crashcheck]
Finding [,forceencrypt]
-!Found
Finding [,forcefdeorfbe]
-!Found
Finding [,fileencryption]
-!Found
Finding [ro,!rw,!atime|relatime]
-Found@0008 [/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1,discard wait,slotselect]
Remove@0008 [/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1,discard wait,slotselect]
Insert@0008 [/dev/block/bootdevice/by-name/system / ext4 ro,noatime,barrier=1,discard wait,slotselect]
Finding [ro,!rw,!atime|relatime]
-Found@0012 [/dev/block/bootdevice/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect]
Remove@0012 [/dev/block/bootdevice/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect]
Insert@0012 [/dev/block/bootdevice/by-name/modem /firmware vfat ro,noatime,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect]
Finding [ro,!rw,!atime|relatime]
-Found@0013 [/dev/block/bootdevice/by-name/bluetooth /bt_firmware vfat ro,shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 wait,slotselect]
Remove@0013 [/dev/block/bootdevice/by-name/bluetooth /bt_firmware vfat ro,shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 wait,slotselect]
Insert@0013 [/dev/block/bootdevice/by-name/bluetooth /bt_firmware vfat ro,noatime,shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 wait,slotselect]
Finding [ro,!rw,!atime|relatime]
-Found@0014 [/dev/block/bootdevice/by-name/dsp /dsp ext4 ro,nosuid,nodev,barrier=1 wait,slotselect]
Remove@0014 [/dev/block/bootdevice/by-name/dsp /dsp ext4 ro,nosuid,nodev,barrier=1 wait,slotselect]
Insert@0014 [/dev/block/bootdevice/by-name/dsp /dsp ext4 ro,noatime,nosuid,nodev,barrier=1 wait,slotselect]
Finding [ro,!rw,!atime|relatime]
-!Found
Saving to cpio:[fstab.qcom] ...
----- init.rc -----
Loading from cpio:[init.rc] ...
Finding [setprop selinux.reload_policy]
-!Found
Finding [import ]
-Found@0000 [import /init.recovery.${ro.hardware}.rc]
Insert@0001 [import init.supersu.rc]
Append@0140 [# SuperSU:PATCH:282]
Append@0141 [# SuperSU:STOCK:2abbb76a1428595002371e5f2c540699f81370e0]
Saving to cpio:[init.rc] ...
----- init.environ.rc -----
Loading from cpio:[init.environ.rc] ...
Could not locate entry
--- Failure, aborting

And here is the content in /init.environ.rc :

# set up the global environment
on init
export ANDROID_BOOTLOGO 1
export ANDROID_ROOT /system
export ANDROID_ASSETS /system/app
export ANDROID_DATA /data
export ANDROID_STORAGE /storage
export EXTERNAL_STORAGE /sdcard
export ASEC_MOUNTPOINT /mnt/asec
export BOOTCLASSPATH /system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/apache-xml.jar:/system/framework/org.apache.http.legacy.boot.jar:/system/framework/tcmiface.jar:/system/framework/telephony-ext.jar:/system/framework/WfdCommon.jar:/system/framework/oem-services.jar:/system/framework/qcom.fmradio.jar
export SYSTEMSERVERCLASSPATH /system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar