[SuperR Kitchen] TheLogicalGamer:
[MENTION=5787964]SuperR.[/MENTION] I'm getting some errors when selecting set_metadata. The rom flashes just fine, and most everything works aside from init.d. Since it flashed fine I just assumed that init.d was working, and I was just making mistakes in my script. however I've tested using mkdir /data/test, and the folder isn't there upon boot. I've also test with a script to make a file in /data/test that wasn't written by me to further exclude the possibility it was a mistake in the script. I had to root my phone using kingroot after a downgrade and can't remember if I installed superSU before pulling system and boot image or not. However when I first extract the system image after getting the errors it does show the rom as rooted. So I remove and then reroot with with system install. Don't know if that is relevant at all but thought I'd throw it in any way.

Edit 2: Sorry for the tag I didn't see you had posted. I'll look into su.d thanks very much for the help. :)

What Kitchen version? v2.1.3.4

What environment are you running the kitchen in (OS, 32/64-bit, cygwin, Bash on Windows, etc.)? Ubuntu 16.04 LTS 64-bit

What device are you working on (make/model)? LG G3 d851 (T-mobile Varient)

What was the source you started from (system.img, system.ext4.tar, rom.zip, etc.) system.img & boot.img

What Android version? 6.0

What perm method (set_perm, set_metadata, sparse_dat, raw_img)?

set_metadata

What did you do after extracting and before building? unpacked boot.img added init.d and insecured the kernel, added system root,busybox, and su.d

removed some apps manually (will include a txt file with link to zip that is a list of all removed and from where as well as system & boot images). replaced build.prop, zip aligned and built.

Were there errors on the screen if you scroll up in the terminal?

When selecting set_metadata on preparing updater-script I get the following errors:

cpio: .subackup/0000_file_contexts: Cannot open: Permission denied

cpio: .subackup/0001_fstab.g3: Cannot open: Permission denied

cpio: .subackup/0002_init.environ.rc: Cannot open: Permission denied

cpio: .subackup/0003_init.rc: Cannot open: Permission denied

cpio: .subackup/0004_sepolicy: Cannot open: Permission denied

cpio: .subackup/index: Cannot Open: Permission denied

14876 blocks

Send a recovery.log after flashing if you have problems flashing the ROM.

Rom flashes fine

Send a link that does not require registration to the files you started with (nandroid, system.img, boot.img, etc)

https://drive.google.com/open?id=0B1bdSH2f5u2USExVRnFiejNGaVU

Use the support option in the Misc Tools menu and attach the support.zip to your post.

I have included the support zip in the link above.

Thanks as always, and if you need anything else just let me know.

Edit: I tried going back to stock and removing kingroot before flashing SuperSU. Also tried building a rom with the only change as unrooting and rerooting with system install and pulled fresh boot & system images both times and still got the error. I suspect it's why init.d isn't working. Also when extracting it just says system.img not boot.img. on other phones I have worked on I believe it said boot & system.img, but I can't confirm. I may have also have gotten the error when getting partitions sizes but that was so long ago I can't recall.