HuskyDG / magic_overlayfs

Make system partition become read-write (it is also possible without Magisk)
657 stars 144 forks source link

[Q] can i use this to mount everything as ro (aka volatile) on kernelsu? #63

Open xxjoe2 opened 4 months ago

xxjoe2 commented 4 months ago

wanna create a volatile overlay system with all partitions mounted as ro upon boot, and all changes will be written to /tmp (tmpfs), and discard all changes after reboot for testing purposes

is it possible to do that with your magic overlayfs with kernelsu?

regards

HuskyDG commented 4 months ago

Yes

HuskyDG commented 4 months ago

Execute ./overlayfs_system /tmp

xxjoe2 commented 4 months ago

great!

but that's for after the device has booted up, ie some files are likely been modified before executing the above commands. am i correct?

so where should i put this command properly so that once booted up all partitions are mounted as ro only? do i need to modify any kernelsu manager scripts or to create a new init file to mount them as ro before running the actual init?

also, do i need to make changes to mode.sh like OVERLAY_MODE=2 etc?

EDIT i just installed the module vi ksu manger but there were errors:

after tracing the scripts, it seems the shrink operation was the cause of the problem, and the module img was missing now, and your module disappeared