[Android General] ROMSG:
I am trying to compile a treble compatible rom for the lg v20 and keep getting this error at the very end of building.

[ 99% 842/843] Package OTA: /home/romsg/los-treble/out/target/product/vs995/lineage_vs995-ota-a82b654207.zip

FAILED: /home/romsg/los-treble/out/target/product/vs995/lineage_vs995-ota-a82b654207.zip

/bin/bash -c "PATH=/home/romsg/los-treble/out/host/linux-x86/bin/:\$PATH MKBOOTIMG=/home/romsg/los-treble/out/host/linux-x86/bin/mkbootimg ./build/tools/releasetools/ota_from_target_files -v --block --extracted_input_target_files /home/romsg/los-treble/out/target/product/vs995/obj/PACKAGING/target_files_intermediates/lineage_vs995-target_files-a82b654207 -p /home/romsg/los-treble/out/host/linux-x86 -k build/target/product/security/testkey --backup=true /home/romsg/los-treble/out/target/product/vs995/obj/PACKAGING/target_files_intermediates/lineage_vs995-target_files-a82b654207.zip /home/romsg/los-treble/out/target/product/vs995/lineage_vs995-ota-a82b654207.zip"

running: openssl pkcs8 -in build/target/product/security/testkey.pk8 -inform DER -nocrypt

--- target info ---

blockimgdiff_versions = (str) 3,4

blocksize = (int) 131072

boot_size = (int) 41943040

build.prop = (dict) {'persist.nfc.smartcard.config': 'SIM1,SIM2,eSE1', 'dalvik.vm.heapminfree': '4m', 'vendor.audio.offload.buffer.size.kb': '64', 'persist.camera.preview.ubwc': '0', 'dalvik.vm.isa.arm.variant': 'kryo', 'ro.product.cpu.abilist': 'arm64-v8a,armeabi-v7a,armeabi', 'persist.sensors.wul_multilevel': '3', 'ro.build.product': 'elsa', 'persist.data.iwlan.enable': 'true', 'debug.qualcomm.sns.daemon': 'e', 'ro.build.id': 'OPM7.181205.001', 'ro.hwui.gradient_cache_size': '1', 'persist.audio.fluence.speaker': 'true', 'ro.product.cpu.abilist32': 'armeabi-v7a,armeabi', 'persist.rmnet.data.enable': 'true', 'ro.cdma.home.operator.numeric': '311480', 'persist.sensors.wul_thresh1': '10', 'persist.sensors.wul_thresh0': '2', 'ro.sys.fw.bg_apps_limit': '60', 'persist.sensors.wul_thresh2': '15', 'ro.qc.sdk.audio.fluencetype': 'fluence', 'net.tethering.noprovisioning': 'true', 'persist.sensors.wul_delay': '3000', 'vendor.audio.offload.pcm.24bit.enable': 'true', 'persist.net.doxlat': 'true', 'ro.qualcomm.cabl': '0', 'ro.frp.pst': '/dev/block/platform/soc/624000.ufshc/by-name/persistent', 'af.fast_track_multiplier': '1', 'vendor.audio.offload.passthrough': 'false', 'dalvik.vm.heapmaxfree': '8m', 'ro.build.fingerprint': 'lge/elsa_vzw/elsa:7.0/NRD90M/1628409164d39:user/release-keys', 'ro.product.manufacturer': 'LGE', 'vendor.audio.flac.sw.decoder.24bit': 'true', 'ro.min_freq_4': '307200', 'persist.vendor.audio.fluence.voicecall': 'true', 'ro.min_freq_0': '307200', 'ro.bionic.ld.warning': '1', 'persist.data.netmgrd.qos.enable': 'true', 'ro.hwui.layer_cache_size': '64', 'ro.build.description': 'elsa_vzw-user 7.0 NRD90M 1628409164d39 release-keys', 'persist.debug.sensors.hal': 'e', 'ro.expect.recovery_id': '0x27da54702fa096ec34bfc18e2af9ad150d8b2630000000000000000000000000', 'dalvik.vm.heapstartsize': '16m', 'ro.sys.fw.dex2oat_thread_count': '4', 'ro.product.brand': 'lge', 'wifi.interface': 'wlan0', 'ro.lineage.display.version': '15.1-20210709-UNOFFICIAL-vs995', 'ro.product.model': 'LG-VS995', 'persist.radio.redir_party_num': '1', 'persist.radio.NO_STAPA': '1', 'dalvik.vm.heapsize': '512m', 'persist.audio.fluence.voicecall': 'true', 'persist.data.df.dl_mode': '5', 'ro.vendor.audio.sdk.fluencetype': 'fluence', 'ril.subscription.types': 'NV,RUIM', 'persist.cne.feature': '1', 'persist.vendor.audio.fluence.speaker': 'true', 'dalvik.vm.heaptargetutilization': '0.75', 'persist.dbg.vt_avail_ovr': '1', 'persist.demo.hdmirotationlock': 'false', 'ro.build.host': 'romsg-VirtualBox', 'ro.build.version.security_patch': '2021-06-05', 'telephony.lteOnCdmaDevice': '1', 'vendor.audio.offload.track.enable': 'true', 'ro.product.locale': 'en-US', 'persist.sensors.mag_filter_size': '8', 'persist.audio.fluence.voicerec': 'false', 'audio.offload.video': 'false', 'persist.timed.enable': 'true', 'vendor.audio.parser.ip.buffer.size': '262144', 'vendor.voice.path.for.pcm.voip': 'true', 'persist.loc.nlp_name': 'com.qualcomm.location', 'ro.telephony.call_ring.multiple': 'false', 'vidc.enc.dcvs.extra-buff-count': '2', 'vendor.audio_hal.period_size': '192', 'ro.product.cpu.abilist64': 'arm64-v8a', 'vendor.audio.offload.min.duration.secs': '30', 'persist.camera.video.ubwc': '0', 'ro.am.reschedule_service': 'true', 'ro.vendor.build.security_patch': '2017-11-16', 'ro.vendor.extension_library': 'libqti-perfd-client.so', 'dalvik.vm.stack-trace-dir': '/data/anr', 'vendor.audio.offload.pcm.16bit.enable': 'true', 'ro.bt.bdaddr_path': '/data/misc/bluetooth/bdaddr', 'ro.build.flavor': 'lineage_vs995-userdebug', 'dalvik.vm.isa.arm.features': 'default', 'audio.deep_buffer.media': 'true', 'vidc.debug.perf.mode': '2', 'ro.gps.agps_provider': '1', 'persist.sensors.onhand.en': '0', 'ro.build.version.release': '8.1.0', 'ro.build.version.codename': 'REL', 'DEVICE_PROVISIONED': '1', 'net.bt.name': 'Android', 'debug.qualcomm.sns.libsensor1': 'e', 'ro.build.type': 'userdebug', 'ro.hwui.text_large_cache_width': '3072', 'persist.vendor.audio.speaker.prot.enable': 'true', 'persist.radio.VT_HYBRID_ENABLE': '1', 'ro.cdma.home.operator.alpha': 'Verizon', 'ro.opengles.version': '196610', 'persist.radio.rat_on': 'combine', 'persist.delta_time.enable': 'true', 'ro.hwui.text_small_cache_height': '2048', 'ro.build.display.id': 'lineage_vs995-userdebug 8.1.0 OPM7.181205.001 044c0ba853 test-keys', 'ro.hwui.texture_cache_flushrate': '0.4', 'ro.treble.enabled': 'true', 'persist.hwc.enable_vds': '1', 'persist.radio.force_on_dc': 'true', 'persist.gps.qc_nlp_in_use': '1', 'debug.egl.hw': '1', 'persist.data.wda.enable': 'true', 'ro.carrier': 'unknown', 'persist.data.df.ul_mode': '5', 'ro.build.version.preview_sdk': '0', 'persist.vendor.bt.enable.splita2dp': 'false', 'ro.build.date': 'Thu Jul 8 19:10:32 PDT 2021', 'ro.lineagelegal.url': 'https://lineageos.org/legal', 'vendor.audio.offload.multiaac.enable': 'true', 'ro.use_data_netmgrd': 'true', 'persist.radio.sib16_support': '1', 'persist.data.df.agg.dl_pkt': '10', 'ro.camera.notify_nfc': '1', 'persist.data.df.mux_count': '8', 'ro.build.date.utc': '1625796632', 'dalvik.vm.isa.arm64.variant': 'kryo', 'keyguard.no_require_sim': 'true', 'ro.nfc.port': 'I2C', 'persist.dpm.feature': '0', 'persist.data.df.dev_name': 'rmnet_usb0', 'ro.build.version.all_codenames': 'REL', 'dalvik.vm.lockprof.threshold': '500', 'debug.gralloc.enable_fb_ubwc': '1', 'dev.pm.dyn_samplingrate': '1', 'persist.sys.wfd.virtual': '0', 'ro.hwui.text_small_cache_width': '2048', 'ro.product.cpu.abi': 'arm64-v8a', 'sdm.perf_hint_window': '50', 'ro.product.name': 'elsa_vzw_us', 'ro.hwui.drop_shadow_cache_size': '7', 'ro.build.version.base_os': '', 'persist.data.qmi.adb_logmask': '0', 'persist.data.mode': 'concurrent', 'vendor.audio.safx.pbe.enabled': 'true', 'ro.wifi.channels': '', 'ro.hwui.r_buffer_cache_size': '12', 'ro.modversion': '15.1-20210709-UNOFFICIAL-vs995', 'ro.build.characteristics': 'default', 'vendor.audio.hw.aac.encoder': 'false', 'persist.audio.camcorder.stereo': 'true', 'sdm.debug.disable_rotator_split': '1', 'ro.lineage.releasetype': 'UNOFFICIAL', 'ro.telephony.default_network': '10', 'qemu.hw.mainkeys': '0', 'persist.sensors.knock_delay': '1000', 'ro.build.version.incremental': '044c0ba853', 'persist.vendor.audio.fluence.voicerec': 'false', 'ro.hwui.text_large_cache_height': '2048', 'rild.libpath': '/vendor/lib64/libril-qc-qmi-1.so', 'ro.build.tags': 'test-keys', 'vendor.audio.use.sw.alac.decoder': 'true', 'ro.sf.lcd_density': '560', 'ro.build.version.sdk': '27', 'persist.data.df.iwlan_mux': '9', 'ro.lineage.build.version': '15.1', 'ro.lineage.build.version.plat.sdk': '9', 'ro.lineage.device': 'vs995', 'ro.build.user': 'romsg', 'vendor.audio.use.sw.ape.decoder': 'true', 'dalvik.vm.isa.arm64.features': 'default', 'persist.dbg.volte_avail_ovr': '1', 'ro.hwui.path_cache_size': '39', 'ro.product.device': 'elsa', 'debug.sf.hw': '1', 'vendor.audio.tunnel.encode': 'false', 'persist.vendor.audio.spkr.cal.duration': '5', 'persist.sensors.lgpickup_en': 'true', 'ro.hwui.texture_cache_size': '96', 'persist.sys.dalvik.vm.lib.2': 'libart.so', 'vendor.audio.offload.gapless.enabled': 'true', 'persist.data.df.agg.dl_size': '4096', 'ro.build.system_root_image': 'true', 'ro.vendor.audio.sdk.ssr': 'false', 'persist.radio.apm_sim_not_pwdn': '1', 'ro.lineage.build.version.plat.rev': '0', 'dalvik.vm.heapgrowthlimit': '256m', 'persist.radio.custom_ecc': '1', 'vendor.audio.offload.multiple.enabled': 'false', 'ro.lineage.version': '15.1-20210709-UNOFFICIAL-vs995'}

cache_fs_type = (str) ext4

cache_size = (int) 1288490180

default_system_dev_certificate = (str) build/target/product/security/testkey

ext_mkuserimg = (str) mkuserimg_mke2fs.sh

extfs_sparse_flag = (str) -s

extra_recovery_keys = (str) vendor/lineage/build/target/product/security/lineage

fs_type = (str) ext4

fstab = (dict) {'/mpt': <common.Partition object at 0x7f29d230ac10>, 'none': <common.Partition object at 0x7f29d2307350>, '/system': <common.Partition object at 0x7f29d230a950>, '/cache': <common.Partition object at 0x7f29d230aad0>, '/boot': <common.Partition object at 0x7f29d230a850>, '/sns': <common.Partition object at 0x7f29d230ab90>, '/': <common.Partition object at 0x7f29d230a950>, '/system_image': <common.Partition object at 0x7f29d230a910>, '/persist': <common.Partition object at 0x7f29d230ab10>, '/recovery': <common.Partition object at 0x7f29d230a8d0>, '/firmware': <common.Partition object at 0x7f29d230aa50>, '/persist-lg': <common.Partition object at 0x7f29d230abd0>, '/misc': <common.Partition object at 0x7f29d230aa90>, '/data': <common.Partition object at 0x7f29d230aa10>, '/vendor': <common.Partition object at 0x7f29d230a9d0>}

fstab_version = (int) 2

full_recovery_image = (str) true

mkbootimg_args = (str)

mkbootimg_version_args = (str) --os_version 8.1.0 --os_patch_level 2021-06-05

multistage_support = (str) 1

ota_override_device = (str) vs995,us996,elsa

ramdisk_dir = (str) /home/romsg/los-treble/out/target/product/vs995/obj/PACKAGING/target_files_intermediates/lineage_vs995-target_files-a82b654207/ROOT

ramdisk_fs_config = (str) /home/romsg/los-treble/out/target/product/vs995/obj/PACKAGING/target_files_intermediates/lineage_vs995-target_files-a82b654207/META/root_filesystem_config.txt

recovery_api_version = (int) 3

recovery_as_boot = (str)

recovery_mount_options = (str) ext4=max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc

recovery_size = (int) 41943040

selinux_fc = (str) /home/romsg/los-treble/out/target/product/vs995/obj/PACKAGING/target_files_intermediates/lineage_vs995-target_files-a82b654207/META/file_contexts.bin

squashfs_sparse_flag = (str) -s

system_fs_type = (str) ext4

system_root_image = (str) true

system_size = (int) 5326759168

tool_extensions = (str) device/lge/msm8996-common

use_set_metadata = (str) 1

userdata_size = (int) 24897388544

vendor_fs_type = (str) ext4

vendor_size = (int) 536866816

(using device-specific extensions from target_files)

loaded device-specific extensions from /home/romsg/los-treble/out/target/product/vs995/obj/PACKAGING/target_files_intermediates/lineage_vs995-target_files-a82b654207/META/releasetools.py

using prebuilt recovery.img from IMAGES...

Traceback (most recent call last):

File "./build/tools/releasetools/ota_from_target_files", line 1587, in <module>

main(sys.argv[1:])

File "./build/tools/releasetools/ota_from_target_files", line 1542, in main

WriteFullOTAPackage(input_zip, output_zip)

File "./build/tools/releasetools/ota_from_target_files", line 496, in WriteFullOTAPackage

script.Unmount("/system")

File "/home/romsg/los-treble/build/make/tools/releasetools/edify_generator.py", line 355, in Unmount

self.mounts.remove(mount_point)

KeyError: '/system'

ninja: build stopped: subcommand failed.

23:52:47 ninja failed with: exit status 1