[f19-branch/master] Rewrite the yum config on yum reset (#967805)