Finish implementation of mountroot script