[Galaxy Note II Android Development] ol1ver:
Install fails with 20190913

Hey [MENTION=7105282]ComicoX[/MENTION]

thanks for keeping my daily driver alive.

After having some bad luck with the display, and replacing it, I sadly lost my previous install (the tilak android 7 rom).

As I lost everything, I decided to repartition (shrink ota and hidden to 1 mb each) so that I can have maximal space for my userdata.

Because of this, my system partition is completly empty. e.g. I formatted it with ext4, there's nothing there anymore. The other partitions where formatted accordingly, ota and the vendor/prebuild are ext2, and userdata is f2fs.

In any case, installing the zip fails, without much information as to why. Looking into the recovery log, I do see slightly more information, but still can't figure out what really goes wrong.

I:operation_start: 'Flashing'
Installing zip file '/tmp/lineage-16.0-20190913-UNOFFICIAL-n7100.zip'
Checking for Digest file...
I:Update binary zip
I:Extracting updater binary 'META-INF/com/google/android/update-binary'
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment not used in updater.
No path given to file labeling backend
selinux_android_file_context: Error getting file context handle (No such file or directory)
Warning: No file_contextsTarget: samsung/t03gxx/t03g:4.3/JSS15J/N7100XXUEMK4:user/release-keysTarget: samsung/t03gxx/t03g:4.3/JSS15J/N7100XXUEMK4:user/release-keys
Extracted file "/tmp/install/bin/backuptool.functions"
Extracted file "/tmp/install/bin/backuptool.sh"
Extracted 2 file(s)
detected filesystem ext4 for /dev/block/mmcblk0p13detected filesystem ext4 for /dev/block/mmcblk0p13

about to run program [/tmp/install/bin/backuptool.sh] with 3 args
run_program: child exited with status 127
Patching system image unconditionally...
performing update
Patching system image unconditionally...blockimg version is 4
maximum stash entries 0
using existing stash /cache/recovery/8833b259bb088b2e13f62771d46006a40f54bc20/
/cache/recovery/last_command doesn't exist.
erasing 166575 blocks
BLKDISCARD ioctl failed: Invalid argument
failed to execute command [erase 6,805,5753,230563,294400,295426,393216]
new data receiver is still available after executing all commands.
script aborted: E1001: Failed to update system image.
E1001: Failed to update system image.error: 1001
Updater process ended with ERROR: 7
I:Install took 0 second(s).
Error installing zip file '/tmp/lineage-16.0-20190913-UNOFFICIAL-n7100.zip'
Updating partition details...
I:mount -o bind '/data/media' '/sdcard' process ended with RC=0
I:Data backup size is 0MB, free: 12967MB.
I:sending message to remove 65537
I:Message sent, remove storage ID: 65537
I:[MTP] mtppipe remove storage 65537
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'auto'
...done
I:Set page: 'flash_done'
I:operation_end - status=1

Not sure how critical the fact is that the current old kernel (3.0) does not support blkdiscard, but as 'erase' fails, I take it that's not the main failure reason .I manually updated the boot.img into /dev/block/mmcblk0p8, but recovery naturally boots into its own 3.0 kernel.

I'm suing TWRP 3.3.1-0 from https://eu.dl.twrp.me/t03g/ from	2019-05-21 04:39:03 EDT.

As the installation instructions and requirements on page 1 are quite light, hopefully you can offer more insight? I tried to see if I could mount/copy the files manually, but I don't think that's possible with OTA file updates?

Thanks for your work so far.