Let's move the "mkfs" code from homed there, plus other related code. This way we can easily reuse it from other places.