[Galaxy S 4 i9505 Original Android Development] Fortinho:
Hi there!

I have a Xiaomi Mi5, yesterday I tried the DBP with a ROM + GApps in /data and it worked good.

Today I wanted to change the secondary ROM, so I went to ROM section in the app, choosed the secondary ROM and deleted it (flagging everything).

Now when I try to flash any secondary ROM I have the same error (tried with two different ROMs). Already tried to update the ramdisk of primary ROM.

Here's what I get:

[D] Initialized installer for zip file: /storage/emulated/0/Nuova cartella 1/DU_gemini_7.1.1_20170203-0752.v11.0-UNOFFICIAL_data-slot-du.zip (1)
[D] Installer version: 9.1.0.r136.ge7995287 (v9.1.0-136-ge7995287)
[D] [Installer] Initialization stage
[D] [Installer] Chroot creation stage
[V] Creating chroot environment
[D] Running executable: mount
mount: bad /etc/fstab: No such file or directory
[D] Running executable: mount
mount: bad /etc/fstab: No such file or directory
[D] Running executable: mount
mount: bad /etc/fstab: No such file or directory
[D] Running executable: mount
mount: bad /etc/fstab: No such file or directory
[D] Not mounting EFS partition because this is not a Samsung device
[D] [Installer] Environment set up stage
[D] [Installer] Device verification stage
[D] ro.product.device = gemini
[D] ro.build.product = gemini
[D] ro.patcher.device =
[D] Target device = gemini
[D] Boot block device: /dev/block/platform/soc/624000.ufshc/by-name/boot
[D] Recovery block device: /dev/block/platform/soc/624000.ufshc/by-name/recovery
[D] System block device: /dev/block/platform/soc/624000.ufshc/by-name/system
[D] Copied /dev/block/platform/soc/624000.ufshc/by-name/boot to the chroot
[D] Copied /dev/block/bootdevice/by-name/boot to the chroot
[D] Copied /dev/block/sde36 to the chroot
[D] Copied /dev/block/platform/soc/624000.ufshc/by-name/recovery to the chroot
[D] Copied /dev/block/bootdevice/by-name/recovery to the chroot
[D] Copied /dev/block/sde37 to the chroot
[D] Symlinked /mb/loop.system to /chroot/dev/block/platform/soc/624000.ufshc/by-name/system
[D] Symlinked /mb/loop.system to /chroot/dev/block/bootdevice/by-name/system
[D] Symlinked /mb/loop.system to /chroot/dev/block/sde39
[D] Boot image is a plain boot image
[D] Found Android boot image header at: 0
[D] - magic: ANDROID!
[D] - kernel_size: 12786901
[D] - kernel_addr: 0x80008000
[D] - ramdisk_size: 9052066
[D] - ramdisk_addr: 0x81000000
[D] - second_size: 0
[D] - second_addr: 0x80f00000
[D] - tags_addr: 0x80000100
[D] - page_size: 4096
[D] - dt_size: 0
[D] - unused: 0x00000000
[D] - name:
[D] - cmdline: androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=32M@0-0xffffffff androidboot.selinux=permissive
[D] - id: d7bf54088da5924b9b344be48e8fe77cd25881ce000000000000000000000000
[E] Copying from recovery: default.recovery.prop
[E] Copying from recovery: sbin/[
[E] Copying from recovery: sbin/[[
[E] Copying from recovery: sbin/adbd
[E] Copying from recovery: sbin/adjtimex
[E] Copying from recovery: sbin/arp
[E] Copying from recovery: sbin/ash
[E] Copying from recovery: sbin/awk
[E] Copying from recovery: sbin/base64
[E] Copying from recovery: sbin/basename
[E] Copying from recovery: sbin/bbconfig
[E] Copying from recovery: sbin/blkid
[E] Copying from recovery: sbin/blockdev
[E] Copying from recovery: sbin/brctl
[E] Copying from recovery: sbin/bu
[E] Copying from recovery: sbin/bunzip2
[E] Copying from recovery: sbin/busybox
[E] Copying from recovery: sbin/bzcat
[E] Copying from recovery: sbin/bzip2
[E] Copying from recovery: sbin/cal
[E] Copying from recovery: sbin/cat
[E] Copying from recovery: sbin/catv
[E] Copying from recovery: sbin/chattr
[E] Copying from recovery: sbin/chcon
[E] Copying from recovery: sbin/chgrp
[E] Copying from recovery: sbin/chmod
[E] Copying from recovery: sbin/chown
[E] Copying from recovery: sbin/chroot
[E] Copying from recovery: sbin/chvt
[E] Copying from recovery: sbin/clear
[E] Copying from recovery: sbin/cmp
[E] Copying from recovery: sbin/comm
[E] Copying from recovery: sbin/cp
[E] Copying from recovery: sbin/cpio
[E] Copying from recovery: sbin/crond
[E] Copying from recovery: sbin/crontab
[E] Copying from recovery: sbin/cut
[E] Copying from recovery: sbin/date
[E] Copying from recovery: sbin/dc
[E] Copying from recovery: sbin/dd
[E] Copying from recovery: sbin/deallocvt
[E] Copying from recovery: sbin/depmod
[E] Copying from recovery: sbin/devmem
[E] Copying from recovery: sbin/df
[E] Copying from recovery: sbin/diff
[E] Copying from recovery: sbin/dirname
[E] Copying from recovery: sbin/dmesg
[E] Copying from recovery: sbin/dnsd
[E] Copying from recovery: sbin/dos2unix
[E] Copying from recovery: sbin/du
[E] Copying from recovery: sbin/dump_image
[E] Copying from recovery: sbin/e2fsck
[E] Copying from recovery: sbin/echo
[E] Copying from recovery: sbin/ed
[E] Copying from recovery: sbin/egrep
[E] Copying from recovery: sbin/env
[E] Copying from recovery: sbin/erase_image
[E] Copying from recovery: sbin/exfat-fuse
[E] Copying from recovery: sbin/expand
[E] Copying from recovery: sbin/expr
[E] Copying from recovery: sbin/false
[E] Copying from recovery: sbin/fatlabel
[E] Copying from recovery: sbin/fbsplash
[E] Copying from recovery: sbin/fdisk
[E] Copying from recovery: sbin/fgconsole
[E] Copying from recovery: sbin/fgrep
[E] Copying from recovery: sbin/find
[E] Copying from recovery: sbin/findfs
[E] Copying from recovery: sbin/flash_image
[E] Copying from recovery: sbin/flash_lock
[E] Copying from recovery: sbin/flash_unlock
[E] Copying from recovery: sbin/flashcp
[E] Copying from recovery: sbin/flock
[E] Copying from recovery: sbin/fold
[E] Copying from recovery: sbin/free
[E] Copying from recovery: sbin/freeramdisk
[E] Copying from recovery: sbin/fsck.exfat
[E] Copying from recovery: sbin/fsck.f2fs
[E] Copying from recovery: sbin/fsck.fat
[E] Copying from recovery: sbin/fstrim
[E] Copying from recovery: sbin/fsync
[E] Copying from recovery: sbin/ftpget
[E] Copying from recovery: sbin/ftpput
[E] Copying from recovery: sbin/fuser
[E] Copying from recovery: sbin/getenforce
[E] Copying from recovery: sbin/getopt
[E] Copying from recovery: sbin/getprop
[E] Copying from recovery: sbin/getsebool
[E] Copying from recovery: sbin/grep
[E] Copying from recovery: sbin/groups
[E] Copying from recovery: sbin/gunzip
[E] Copying from recovery: sbin/gzip
[E] Copying from recovery: sbin/halt
[E] Copying from recovery: sbin/head
[E] Copying from recovery: sbin/healthd
[E] Copying from recovery: sbin/hexdump
[E] Copying from recovery: sbin/hwclock
[E] Copying from recovery: sbin/id
[E] Copying from recovery: sbin/ifconfig
[E] Copying from recovery: sbin/inetd
[E] Copying from recovery: sbin/insmod
[E] Copying from recovery: sbin/install
[E] Copying from recovery: sbin/ionice
[E] Copying from recovery: sbin/iostat
[E] Copying from recovery: sbin/ip
[E] Copying from recovery: sbin/kill
[E] Copying from recovery: sbin/killall
[E] Copying from recovery: sbin/killall5
[E] Copying from recovery: sbin/less
[E] Copying from recovery: sbin/libaosprecovery.so
[E] Copying from recovery: sbin/libbacktrace.so
[E] Copying from recovery: sbin/libbase.so
[E] Copying from recovery: sbin/libblkid.so
[E] Copying from recovery: sbin/libbmlutils.so
[E] Copying from recovery: sbin/libc++.so
[E] Copying from recovery: sbin/libc.so
[E] Copying from recovery: sbin/libcrecovery.so
[E] Copying from recovery: sbin/libcryptfs_hw.so
[E] Copying from recovery: sbin/libcryptfslollipop.so
[E] Copying from recovery: sbin/libcrypto.so
[E] Copying from recovery: sbin/libcutils.so
[E] Copying from recovery: sbin/libdl.so
[E] Copying from recovery: sbin/libexfat_twrp.so
[E] Copying from recovery: sbin/libext2_blkid.so
[E] Copying from recovery: sbin/libext2_com_err.so
[E] Copying from recovery: sbin/libext2_e2p.so
[E] Copying from recovery: sbin/libext2_profile.so
[E] Copying from recovery: sbin/libext2_quota.so
[E] Copying from recovery: sbin/libext2_uuid.so
[E] Copying from recovery: sbin/libext2fs.so
[E] Copying from recovery: sbin/libext4_utils.so
[E] Copying from recovery: sbin/libflashutils.so
[E] Copying from recovery: sbin/libft2.so
[E] Copying from recovery: sbin/libfusesideload.so
[E] Copying from recovery: sbin/libgpt_twrp.so
[E] Copying from recovery: sbin/libhardware.so
[E] Copying from recovery: sbin/liblog.so
[E] Copying from recovery: sbin/libm.so
[E] Copying from recovery: sbin/libminadbd.so
[E] Copying from recovery: sbin/libmincrypttwrp.so
[E] Copying from recovery: sbin/libminuitwrp.so
[E] Copying from recovery: sbin/libminzip.so
[E] Copying from recovery: sbin/libmmcutils.so
[E] Copying from recovery: sbin/libmtdutils.so
[E] Copying from recovery: sbin/libnetd_client.so
[E] Copying from recovery: sbin/libopenaes.so
[E] Copying from recovery: sbin/libpcre.so
[E] Copying from recovery: sbin/libpng.so
[E] Copying from recovery: sbin/libselinux.so
[E] Copying from recovery: sbin/libsparse.so
[E] Copying from recovery: sbin/libstdc++.so
[E] Copying from recovery: sbin/libtar.so
[E] Copying from recovery: sbin/libtwadbbu.so
[E] Copying from recovery: sbin/libtwrpmtp.so
[E] Copying from recovery: sbin/libunwind.so
[E] Copying from recovery: sbin/libusbhost.so
[E] Copying from recovery: sbin/libutil-linux.so
[E] Copying from recovery: sbin/libutils.so
[E] Copying from recovery: sbin/libz.so
[E] Copying from recovery: sbin/linker
[E] Copying from recovery: sbin/linker64
[E] Copying from recovery: sbin/ln
[E] Copying from recovery: sbin/losetup
[E] Copying from recovery: sbin/ls
[E] Copying from recovery: sbin/lsattr
[E] Copying from recovery: sbin/lsmod
[E] Copying from recovery: sbin/lspci
[E] Copying from recovery: sbin/lsusb
[E] Copying from recovery: sbin/lzcat
[E] Copying from recovery: sbin/lzma
[E] Copying from recovery: sbin/lzop
[E] Copying from recovery: sbin/lzopcat
[E] Copying from recovery: sbin/make_ext4fs
[E] Copying from recovery: sbin/man
[E] Copying from recovery: sbin/matchpathcon
[E] Copying from recovery: sbin/md5sum
[E] Copying from recovery: sbin/mesg
[E] Copying from recovery: sbin/mkdir
[E] Copying from recovery: sbin/mke2fs
[E] Copying from recovery: sbin/mkexfatfs
[E] Copying from recovery: sbin/mkfifo
[E] Copying from recovery: sbin/mkfs.ext2
[E] Copying from recovery: sbin/mkfs.f2fs
[E] Copying from recovery: sbin/mkfs.fat
[E] Copying from recovery: sbin/mknod
[E] Copying from recovery: sbin/mkswap
[E] Copying from recovery: sbin/mktemp
[E] Copying from recovery: sbin/modinfo
[E] Copying from recovery: sbin/modprobe
[E] Copying from recovery: sbin/more
[E] Copying from recovery: sbin/mount
[E] Copying from recovery: sbin/mountpoint
[E] Copying from recovery: sbin/mpstat
[E] Copying from recovery: sbin/mv
[E] Copying from recovery: sbin/nanddump
[E] Copying from recovery: sbin/nandwrite
[E] Copying from recovery: sbin/nbd-client
[E] Copying from recovery: sbin/nc
[E] Copying from recovery: sbin/netstat
[E] Copying from recovery: sbin/nice
[E] Copying from recovery: sbin/nmeter
[E] Copying from recovery: sbin/nohup
[E] Copying from recovery: sbin/nslookup
[E] Copying from recovery: sbin/ntpd
[E] Copying from recovery: sbin/od
[E] Copying from recovery: sbin/openaes
[E] Copying from recovery: sbin/openvt
[E] Copying from recovery: sbin/patch
[E] Copying from recovery: sbin/permissive.sh
[E] Copying from recovery: sbin/pgrep
[E] Copying from recovery: sbin/pidof
[E] Copying from recovery: sbin/pigz
[E] Copying from recovery: sbin/ping
[E] Copying from recovery: sbin/pipe_progress
[E] Copying from recovery: sbin/pkill
[E] Copying from recovery: sbin/pmap
[E] Copying from recovery: sbin/poweroff
[E] Copying from recovery: sbin/printenv
[E] Copying from recovery: sbin/printf
[E] Copying from recovery: sbin/ps
[E] Copying from recovery: sbin/pstree
[E] Copying from recovery: sbin/pwd
[E] Copying from recovery: sbin/pwdx
[E] Copying from recovery: sbin/qseecomd
[E] Copying from recovery: sbin/rdate
[E] Copying from recovery: sbin/rdev
[E] Copying from recovery: sbin/readlink
[E] Copying from recovery: sbin/realpath
[E] Copying from recovery: sbin/reboot
[E] Copying from recovery: sbin/recovery
[E] Copying from recovery: sbin/renice
[E] Copying from recovery: sbin/reset
[E] Copying from recovery: sbin/resize
[E] Copying from recovery: sbin/resize2fs
[E] Copying from recovery: sbin/restorecon
[E] Copying from recovery: sbin/rev
[E] Copying from recovery: sbin/rm
[E] Copying from recovery: sbin/rmdir
[E] Copying from recovery: sbin/rmmod
[E] Copying from recovery: sbin/route
[E] Copying from recovery: sbin/run-parts
[E] Copying from recovery: sbin/runcon
[E] Copying from recovery: sbin/rx
[E] Copying from recovery: sbin/sed
[E] Copying from recovery: sbin/selinuxenabled
[E] Copying from recovery: sbin/seq
[E] Copying from recovery: sbin/sestatus
[E] Copying from recovery: sbin/setconsole
[E] Copying from recovery: sbin/setenforce
[E] Copying from recovery: sbin/setfiles
[E] Copying from recovery: sbin/setkeycodes
[E] Copying from recovery: sbin/setprop
[E] Copying from recovery: sbin/setsebool
[E] Copying from recovery: sbin/setserial
[E] Copying from recovery: sbin/setsid
[E] Copying from recovery: sbin/sh
[E] Copying from recovery: sbin/sha1sum
[E] Copying from recovery: sbin/sha256sum
[E] Copying from recovery: sbin/sha3sum
[E] Copying from recovery: sbin/sha512sum
[E] Copying from recovery: sbin/simg2img
[E] Copying from recovery: sbin/sleep
[E] Copying from recovery: sbin/smemcap
[E] Copying from recovery: sbin/sort
[E] Copying from recovery: sbin/split
[E] Copying from recovery: sbin/start
[E] Copying from recovery: sbin/stat
[E] Copying from recovery: sbin/stop
[E] Copying from recovery: sbin/strings
[E] Copying from recovery: sbin/stty
[E] Copying from recovery: sbin/sum
[E] Copying from recovery: sbin/swapoff
[E] Copying from recovery: sbin/swapon
[E] Copying from recovery: sbin/sync
[E] Copying from recovery: sbin/sysctl
[E] Copying from recovery: sbin/tac
[E] Copying from recovery: sbin/tail
[E] Copying from recovery: sbin/tar
[E] Copying from recovery: sbin/taskset
[E] Copying from recovery: sbin/teamwin
[E] Copying from recovery: sbin/tee
[E] Copying from recovery: sbin/telnet
[E] Copying from recovery: sbin/telnetd
[E] Copying from recovery: sbin/test
[E] Copying from recovery: sbin/tftp
[E] Copying from recovery: sbin/tftpd
[E] Copying from recovery: sbin/time
[E] Copying from recovery: sbin/timeout
[E] Copying from recovery: sbin/toolbox
[E] Copying from recovery: sbin/top
[E] Copying from recovery: sbin/touch
[E] Copying from recovery: sbin/tr
[E] Copying from recovery: sbin/traceroute
[E] Copying from recovery: sbin/true
[E] Copying from recovery: sbin/ttysize
[E] Copying from recovery: sbin/tune2fs
[E] Copying from recovery: sbin/twrp
[E] Copying from recovery: sbin/ueventd
[E] Copying from recovery: sbin/umount
[E] Copying from recovery: sbin/uname
[E] Copying from recovery: sbin/uncompress
[E] Copying from recovery: sbin/unexpand
[E] Copying from recovery: sbin/uniq
[E] Copying from recovery: sbin/unix2dos
[E] Copying from recovery: sbin/unlzma
[E] Copying from recovery: sbin/unlzop
[E] Copying from recovery: sbin/unpigz
[E] Copying from recovery: sbin/unxz
[E] Copying from recovery: sbin/unzip
[E] Copying from recovery: sbin/uptime
[E] Copying from recovery: sbin/usleep
[E] Copying from recovery: sbin/uudecode
[E] Copying from recovery: sbin/uuencode
[E] Copying from recovery: sbin/vi
[E] Copying from recovery: sbin/watch
[E] Copying from recovery: sbin/watchdogd
[E] Copying from recovery: sbin/wc
[E] Copying from recovery: sbin/wget
[E] Copying from recovery: sbin/which
[E] Copying from recovery: sbin/whoami
[E] Copying from recovery: sbin/xargs
[E] Copying from recovery: sbin/xz
[E] Copying from recovery: sbin/xzcat
[E] Copying from recovery: sbin/yes
[E] Copying from recovery: sbin/zcat
[D] [Installer] Retrieve install type stage
[V] ROM ID: data-slot-du
[V] - /system: /raw/data/multiboot/data-slot-du/system
[V] - /cache: /raw/cache/multiboot/data-slot-du/cache
[V] - /data: /raw/data/multiboot/data-slot-du/data
[V] - System is image file: false
[V] - Cache is image file: false
[V] - Data is image file: false
[V] ROM ID: data-slot-du
[D] [Installer] Chroot set up stage
[D] Boot partition SHA512sum: fed744e3a229430636b7650f123365b7201f1f0a1cbb5ca69aba0872f67c3fc0d4d0776a52ec5a3b09f368d27cac11802e11e4e24e6f9f1a9b5c7886dd33a520
[V] Won't switch to non-existent target ROM
[E] /file_contexts: Failed to stat: No such file or directory
[D] [Installer] Filesystem mounting stage
[D] /raw/data/.system.img.tmp: Creating new 3221225472 ext4 image
[D] Running executable: make_ext4fs
[V] make_ext4fs: Creating filesystem with parameters:

[V] make_ext4fs: Size: 3221225472

[V] make_ext4fs: Block size: 4096

[V] make_ext4fs: Blocks per group: 32768

[V] make_ext4fs: Inodes per group: 8192

[V] make_ext4fs: Inode size: 256

[V] make_ext4fs: Journal blocks: 12288

[V] make_ext4fs: Label:

[V] make_ext4fs: Blocks: 786432

[V] make_ext4fs: Block groups: 24

[V] make_ext4fs: Reserved block group size: 191

[V] make_ext4fs: Created filesystem with 11/196608 inodes and 25785/786432 blocks

[V] Copying system to temporary image
[D] Assigning /raw/data/.system.img.tmp to loop device /dev/block/loop1
[D] Clearing loop device /dev/block/loop1
[D] [Installer] Installation stage
[D] Property 'ro.bootloader' does not exist in recovery's default.prop
[D] - 'ro.bootloader'='unknown' will be set in chroot environment
[V] Running real update-binary
[V] Here we go!
[D] update-binary is AROMA: 0
[D] Setting legacy property: 'ro.bootloader' = 'unknown'
[D] Setting legacy property: 'dalvik.vm.stack-trace-file' = '/data/anr/traces.txt'
[D] Setting legacy property: 'net.bt.name' = 'Android'
[D] Setting legacy property: 'dalvik.vm.dex2oat-filter' = 'verify-at-runtime'
[D] Setting legacy property: 'dalvik.vm.image-dex2oat-filter' = 'verify-at-runtime'
[D] Setting legacy property: 'ro.kernel.android.checkjni' = '1'
[D] Setting legacy property: 'dalvik.vm.isa.arm.features' = 'default'
[D] Setting legacy property: 'dalvik.vm.usejit' = 'true'
[D] Setting legacy property: 'dalvik.vm.isa.arm.variant' = 'cortex-a53'
[D] Setting legacy property: 'dalvik.vm.isa.arm64.features' = 'default'
[D] Setting legacy property: 'dalvik.vm.isa.arm64.variant' = 'kryo'
[D] Setting legacy property: 'persist.sys.dalvik.vm.lib.2' = 'libart'
[D] Setting legacy property: 'dalvik.vm.lockprof.threshold' = '500'
[D] Setting legacy property: 'ro.omni.version' = '6.0.1-20161120-gemini-HOMEMADE'
[D] Setting legacy property: 'ro.modversion' = 'OmniROM-6.0.1-20161120-gemini-HOMEMADE'
[D] Setting legacy property: 'persist.sys.root_access' = '1'
[D] Setting legacy property: 'ro.build.date.utc' = '0'
[D] Setting legacy property: 'ro.setupwizard.enterprise_mode' = '1'
[D] Setting legacy property: 'ro.build.version.security_patch' = '2016-11-05'
[D] Setting legacy property: 'ro.build.version.sdk' = '23'
[D] Setting legacy property: 'persist.sys.usb.config' = 'adb'
[D] Setting legacy property: 'ro.secure' = '0'
[D] Setting legacy property: 'ro.product.cpu.abi' = 'arm64-v8a'
[D] Setting legacy property: 'ro.build.date' = 'Sun Nov 20 16:23:09 EST 2016'
[D] Setting legacy property: 'ro.build.version.release' = '6.0.1'
[D] Setting legacy property: 'ro.build.version.incremental' = '5'
[D] Setting legacy property: 'ro.build.host' = 'build'
[D] Setting legacy property: 'ro.allow.mock.location' = '1'
[D] Setting legacy property: 'ro.com.google.clientidbase' = 'android-google'
[D] Setting legacy property: 'ro.product.manufacturer' = 'Xiaomi'
[D] Setting legacy property: 'ro.build.tags' = 'test-keys'
[D] Setting legacy property: 'ro.debuggable' = '1'
[D] Setting legacy property: 'ro.build.id' = 'MOB31K'
[D] Setting legacy property: 'ro.build.version.all_codenames' = 'REL'
[D] Setting legacy property: 'ro.build.display.id' = 'omni_gemini-eng 6.0.1 MOB31K 5 test-keys'
[D] Setting legacy property: 'ro.build.description' = 'omni_gemini-eng 6.0.1 MOB31K 5 test-keys'
[D] Setting legacy property: 'ro.build.version.preview_sdk' = ''
[D] Setting legacy property: 'ro.build.version.base_os' = ''
[D] Setting legacy property: 'ro.bootimage.build.date.utc' = '1479677001'
[D] Setting legacy property: 'ro.build.type' = 'eng'
[D] Setting legacy property: 'ro.bootimage.build.fingerprint' = 'Xiaomi/omni_gemini/gemini:6.0.1/MOB31K/5:eng/test-keys'
[D] Setting legacy property: 'debug.atrace.tags.enableflags' = '0'
[D] Setting legacy property: 'ro.bootimage.build.date' = 'Sun Nov 20 16:23:21 EST 2016'
[D] Setting legacy property: 'ro.wifi.channels' = ''
[D] Setting legacy property: 'ro.product.brand' = 'Xiaomi'
[D] Setting legacy property: 'ro.build.user' = 'jenkins'
[D] Setting legacy property: 'ro.product.cpu.abilist64' = ''
[D] Setting legacy property: 'ro.board.platform' = 'msm8996'
[D] Setting legacy property: 'ro.build.product' = 'gemini'
[D] Setting legacy property: 'ro.product.cpu.abilist32' = 'armeabi-v7a,armeabi'
[D] Setting legacy property: 'ro.product.model' = 'MI 5'
[D] Setting legacy property: 'ro.product.board' = 'MSM8996'
[D] Setting legacy property: 'ro.product.name' = 'omni_gemini'
[D] Setting legacy property: 'ro.product.device' = 'gemini'
[D] Setting legacy property: 'ro.product.cpu.abilist' = 'armeabi-v7a,armeabi'
[D] Setting legacy property: 'ro.build.fingerprint' = 'Xiaomi/omni_gemini/gemini:6.0.1/MOB31K/5:eng/test-keys'
[D] Setting legacy property: 'ro.build.version.codename' = 'REL'
[D] Setting legacy property: 'ro.build.flavor' = 'omni_gemini-eng'
[D] Setting legacy property: 'ro.build.characteristics' = 'default'
[D] Setting legacy property: 'ro.omni.device' = 'gemini'
[D] Setting legacy property: 'ro.url.legal' = 'http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html'
[D] Setting legacy property: 'ro.com.android.wifi-watchlist' = 'GoogleGuest'
[D] Original properties environment: null
[D] Switched to legacy properties environment: 8,32768
Warning: No file_contextsscript aborted: gemini.verify_trustzone() failed to read current TZ version: 2
gemini.verify_trustzone() failed to read current TZ version: 2
[D] Updater exited with status: 7

[V] Elapsed time: 00:00:00.045
[V] Failed to run real update-binary
[D] Running executable: /update-binary-tool
[D] update-binary-tool: Successfully mounted /mb/loop.system at /system
[D] [Installer] Filesystem unmounting stage
[D] Running executable: /update-binary-tool
[D] update-binary-tool: Successfully unmounted /system
[D] Running executable: /update-binary-tool
[E] update-binary-tool: /cache: Failed to unmount: Invalid argument
[D] Running executable: /update-binary-tool
[E] update-binary-tool: /data: Failed to unmount: Invalid argument
[V] Copying temporary image to system
[D] Assigning /raw/data/.system.img.tmp to loop device /dev/block/loop1
[D] Clearing loop device /dev/block/loop1
[D] [Installer] Cleanup stage
[V] Failed to flash zip file.
[V] Destroying chroot environment
[E] Failed to unmount /chroot/system: Invalid argument
[E] Failed to unmount /chroot/cache: Invalid argument
[E] Failed to unmount /chroot/data: Invalid argument
[E] Failed to unmount /chroot/efs: Invalid argument
[E] Failed to unmount /chroot: Device or resource busy
[D] Attempting to unmount /chroot/mb/install.zip
[D] Attempting to unmount /chroot/mb/bind.data
[D] Attempting to unmount /chroot/mb/bind.cache
[D] Attempting to unmount /chroot
[E] /efs is not mounted
[V] The log file was saved as MultiBoot.log on the internal storage.
[V] Finished cleanu

Thank you.

EDIT: I figured out that's a ROM problem: if I flash the first ROM I tried it works, and of course it boots too.