This should reduce code duplication in most of initial setup like places - currently firstboot and live image setup.