upgrade: Retry write upon EAGAIN, EINTR and EINPROGRESS
upgrade: Let omnigrade dev setting influence STOS upgrades too