This fixes unmounting with gentoo. This function will be use by the installer to unmount the image after the build.
Significant re-design to use copy-on-write and hashes for all data