Revert "Revert "rework ramdisk""

This reverts commit cfb6e0e6545a3926a11c09425a3d7ff09bc84abb.