Moved code that copies filesystem to ram_lib