Rewrote the rootfs updater to support more OS.