Minor changes for pi-upgrade to save exit status in a file, so that pi-update can read that file.