ignore this
this makes it possible to dualboot (on phones that have A/B slots) pmos with shared userdata (tested on OnePlus 6)
init.sh will look for userdata partition mount it on /sysroot check if /sysroot/pmos folder exists if it does, then we do some magic to make switch_root work
to use this
- go to chroot_rootfs and create a tar
- use TWRP to unpack it in /data/pmos
- go to slot b and flash boot.img and minimal rootfs (User interface: none)
now you have pmos on slot b and android on slot a
if this is merged then I will write a guide in wiki on how to use this