My idea is to make the installed USB boot in away entire system load in to memory but I need to keep persistence data inĀ  /var/lib/mysql and /var/www/


Sounds like you want something similar to Pi builds:

https://fedoraproject.org/wiki/Architectures/ARM/Raspberry_Pi

May be a good spring board?

-- FredĀ