Since I mount /boot read-only (to prevent a dirty file system when not shutting down properly), the update script reports errors after doing some work. I restart the script (after mount -o remount,rw /boot) to make sure that update succeeds, but it would be better if the script checked if /boot was writeable before starting to update files.