[HTC U11+ Guides, News, & Discussion] usmantahir:
Can anyone please help me correct error 7 with the following updater-script

The error i get is :

Installing zip file '/external_sd/lineage-15.1

20180524-UNOFFICIAL-Ocm.zip

Checking for Digest file...

Target: htc/ocmdtwl_01405/htc_ocmdtwl:8.0.0/OPR6.

170623.013/1010171.4:user/release-keys

detected filesystem ext4 for /dev/block/bootdevice/

by-name/system

Patching system image unconditionally...

E1001: Failed to update system image.

Updater process ended with ERROR: 7

Error installing zip file '/external_sd/lineage-15.

-20180524-UNOFFICIAL-ROm,zip'

Updating partition details...

... done

assert(getprop("ro.product.device") == "htc_ocm" || getprop("ro.build.product") == "htc_ocm" ||

getprop("ro.product.device") == "htc_ocndugl" || getprop("ro.build.product") == "htc_ocndugl" ||

getprop("ro.product.device") == "htc_ocmdtwl" || getprop("ro.build.product") == "htc_ocmdtwl" ||

getprop("ro.product.device") == "ocm" || getprop("ro.build.product") == "ocm" || abort("E3004: This package is for device: htc_ocm,htc_ocndugl,htc_ocmdtwl,ocm; this device is " + getprop("ro.product.device") + ".");

ui_print("Target: htc/ocmdtwl_01405/htc_ocmdtwl:8.0.0/OPR6.170623.013/1010171.4:user/release-keys");

ifelse(is_mounted("/system"), unmount("/system"));

package_extract_dir("install", "/tmp/install");

set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);

set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);

mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");

run_program("/tmp/install/bin/backuptool.sh", "backup");

unmount("/system");

show_progress(0.650000, 0);

ui_print("Patching system image unconditionally...");

block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat") ||

abort("E1001: Failed to update system image.");

show_progress(0.100000, 0);

ui_print("Patching vendor image unconditionally...");

block_image_update("/dev/block/bootdevice/by-name/vendor", package_extract_file("vendor.transfer.list"), "vendor.new.dat.br", "vendor.patch.dat") ||

abort("E2001: Failed to update vendor image.");

show_progress(0.020000, 10);

mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");

run_program("/tmp/install/bin/backuptool.sh", "restore");

unmount("/system");

show_progress(0.050000, 5);

package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");

show_progress(0.200000, 10);

if (getprop("ro.boot.mid") == "2Q4D20000" || getprop("ro.boot.mid") == "2Q4D10000") then

ui_print("This is a DS device - renaming radio props");

mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");

rename("/vendor/lib64/libril-qc-ltedirectdisc.so", "/system/vendor/lib64/libril-qc-ltedirectdisc.so");

rename("/vendor/lib64/libril-qc-qmi-1.so", "/system/vendor/lib64/libril-qc-qmi-1.so");

rename("/vendor/lib64/libril-qc-radioconfig.so", "/system/vendor/lib64/libril-qc-radioconfig.so");

rename("/vendor/lib64/libril-qcril-hook-oem.so", "/system/vendor/lib64/libril-qcril-hook-oem.so");

unmount("/system");

endif;

set_progress(1.000000);

Any help is appreciated :s