added conditional to only reboot if yum updated changed