add generic rootfs install function