[SuperSU] Joeisgood99:
SU systemless 2.7.4 does not work for Omnirom 6.0.1 on Sony Z5C

SU 2.7.4 is unable to locate ramdisk.cpio and aborting, prints 'already patched' on Sony Z5C, Omnirom boot.img, Android 6.0.1

----- patch check -----

Loading from cpio:[init.rc] ...

Could not locate entry
--- Already patched, attempting to find stock backup

TWRP 3.0.2.0

RECOVERY LOG

I:Set page: 'flash_zip'

Iperation_start: 'Flashing'

Installing zip file '/sdcard/Download/BETA-SuperrSU-v2.76-20160630161323.zip

Checking for MD5 file...

Skipping MD5 check: no MD5 file found

I:Zip does not contain SELinux file_contexts file in its root.

I:Legacy property environment initialized.

*****************

SuperSU installer

*****************

- Mounting /system, /data and rootfs

mount: mounting /dev/block/mmcblk0p42 on /data failed: Device or resource busy

2+0 records in

2+0 records out

2 bytes (2B) copied, 0.002939 seconds, 680B/s

3+0 records in

3+0 records out

3 bytes (3B) copied, 0.001267 seconds, 2.3KB/s

10+0 records in

10+0 records out

10 bytes (10B) copied, 0.000960 seconds, 10.2KB/s

0+0 records in

0+0 records out

0 bytes (0B) copied, 0.002400 seconds, 0B/s

/tmp/updater: line 795: /system/toolbox: not found

- Extracting files

mkdir: can't create directory 'supersu': File exists

Archive: /sdcard/Download/BETA-SuperSU-v2.71-20160331103524.zip

inflating: META-INF/MANIFEST.MF

inflating: META-INF/CERT.SF

inflating: META-INF/CERT.RSA

inflating: META-INF/com/google/android/update-binary

inflating: META-INF/com/google/android/updater-script

inflating: arm/chattr

inflating: arm/chattr.pie

inflating: arm/libsupol.so

inflating: arm/su

inflating: arm/sukernel

inflating: arm/supolicy

inflating: arm64/libsupol.so

inflating: arm64/su

inflating: arm64/sukernel

inflating: arm64/supolicy

inflating: armv7/chattr.pie

inflating: armv7/libsupol.so

inflating: armv7/su

inflating: armv7/sukernel

inflating: armv7/supolicy

inflating: common/000000deepsleep

inflating: common/99SuperSUDaemon

inflating: common/Superuser.apk

inflating: common/file_contexts_image

inflating: common/install-recovery.sh

inflating: common/launch_daemonsu.sh

inflating: mips/chattr.pie

inflating: mips/libsupol.so

inflating: mips/su

inflating: mips/sukernel

inflating: mips/supolicy

inflating: mips64/libsupol.so

inflating: mips64/su

inflating: mips64/sukernel

inflating: mips64/supolicy

inflating: x64/libsupol.so

inflating: x64/su

inflating: x64/sukernel

inflating: x64/supolicy

inflating: x86/chattr

inflating: x86/chattr.pie

inflating: x86/libsupol.so

inflating: x86/su

inflating: x86/su.pie

inflating: x86/sukernel

inflating: x86/supolicy

(Android M policy compatibility mode)

supolicy v2.71 (ndk:arm64-v8a) - Copyright (C) 2014-2016 - Chainfire

Patching policy ...

-permissive:adbd_socket=ok

***HAD TO DELETE AS TOO LONG FOR XDA***

-permissive:asec_public_file=ok

-permissiverecovery inside kernel

***HAD TO DELETE AS TOO LONG FOR XDA***

-permissive:domain=ok

- Success

- Detecting system compatibility

sukernel v2.76 (ndk:arm64-v8a) - Copyright (C) 2014-2016 - Chainfire

Loading from [/dev/block/mmcblk0p29] ...

magic: [ANDROID!]

kernel: [8100131] (8101888) @ 0x00008000

ramdisk: [8662207] (8663040) @ 0x01000000

second: [0] (0) @ 0x00f00000

tags: @ 0x00000100

page size: 4096

unused: [0x00000000] [0x00000000]

dtb(?): [0] (0)

name: []

command line: [console=ttyHSL0,115200,n8 lpm_levels.sleep_disabled=1 boot_cpus=0-5 user_debug=31 androidboot.selinux=enforcing msm_rtb.filter=0x3F ehci-hcd.park=3 dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y coherent_pool=8M androidboot.hardware=suzuran]

extra command line: []

id: [0x949b3ddcf38582a57be4a910d8790977c6a7dfb800000000 0000000000000000]

Saving to [/sutmp/ramdisk.packed] ...

sukernel v2.76 (ndk:arm64-v8a) - Copyright (C) 2014-2016 - Chainfire

Loading from [/sutmp/ramdisk.packed] ...

Decompressing [8662207] --> [18988288]

Saving to [/sutmp/ramdisk] ...

sukernel v2.76 (ndk:arm64-v8a) - Copyright (C) 2014-2016 - Chainfire

Loading from [/sutmp/ramdisk] ...

----- patch check -----

Loading from cpio:[init.rc] ...

Could not locate entry

- System-less mode, boot image support required

- Creating image

Creating filesystem with parameters:

Size: 33554432

Block size: 4096

Blocks per group: 32768

Inodes per group: 2048

Inode size: 256

Journal blocks: 1024

Label:

Blocks: 8192

Block groups: 1

Reserved block group size: 7

Created filesystem with 11/2048 inodes and 1166/8192 blocks

/data/su.img: clean, 11/2048 files, 1166/8192 blocks

- Mounting image

mkdir: can't create directory '/su': File exists

mknod: /dev/block/loop0: File exists

- Creating paths

- Removing old files

- Placing files

rm: can't remove '/su/bin/su': No such file or directory

rm: can't remove '/su/bin/daemonsu': No such file or directory

rm: can't remove '/su/bin/supolicy_wrapped': No such file or directory

rm: can't remove '/su/lib/libsupol.so': No such file or directory

rm: can't remove '/su/bin/sukernel': No such file or directory

rm: can't remove '/data/SuperSU.apk': No such file or directory

******************

Boot image patcher

******************

- Finding boot image

--- Boot image: /dev/block/mmcblk0p29

- Extracting ramdisk

sukernel v2.76 (ndk:arm64-v8a) - Copyright (C) 2014-2016 - Chainfire

Loading from [/dev/block/mmcblk0p29] ...

magic: [ANDROID!]

kernel: [8100131] (8101888) @ 0x00008000

ramdisk: [8662207] (8663040) @ 0x01000000

second: [0] (0) @ 0x00f00000

tags: @ 0x00000100

page size: 4096

unused: [0x00000000] [0x00000000]

dtb(?): [0] (0)

name: []

command line: [console=ttyHSL0,115200,n8 lpm_levels.sleep_disabled=1 boot_cpus=0-5 user_debug=31 androidboot.selinux=enforcing msm_rtb.filter=0x3F ehci-hcd.park=3 dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y coherent_pool=8M androidboot.hardware=suzuran]

extra command line: []

id: [0x949b3ddcf38582a57be4a910d8790977c6a7dfb800000000 0000000000000000]

Saving to [/sutmp/ramdisk.packed] ...

- Decompressing ramdisk

sukernel v2.76 (ndk:arm64-v8a) - Copyright (C) 2014-2016 - Chainfire

Loading from [/sutmp/ramdisk.packed] ...

Decompressing [8662207] --> [18988288]

Saving to [/sutmp/ramdisk] ...

- Checking patch status

sukernel v2.71 (ndk:arm64-v8a) - Copyright (C) 2014-2016 - Chainfire

Loading from [/sutmp/ramdisk] ...

----- patch check -----

Loading from cpio:[init.rc] ...

Could not locate entry

--- Already patched, attempting to find stock backup

sukernel v2.76 (ndk:arm64-v8a) - Copyright (C) 2014-2016 - Chainfire

Loading from [/sutmp/ramdisk] ...

Loading from cpio:[init.rc] ...

Could not locate entry

--- Restore failed, aborting

*************************

IMPORTANT NOTICES

*************************

If TWRP offers to install

SuperSU, do *NOT* let it!

*************************

First reboot may take a

few minutes. It can also

loop a few times. Do not

interrupt the process!

*************************

- Unmounting /system

- Done !

[MENTION=631273]Chainfire[/MENTION] the slightly different ramdisk set up is preventing your script from doing its thing.

I will add at this point that in omni ramdisk, ramdisk.cpio is next to ramdiskrecovery.cpio inside sbin as Sony has a 'recovery inside kernel' configuration.

here is a link to the Standard Omnirom Sony Z5 boot.img

https://mega.nz/#F!o15TzTgS!tndUD7MxwkREFLSFlXjCAQ

Any help appreciated.