mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-08-17 18:32:57 +01:00
Follow-up to review feedback on #7003 and #7004: when removing the hosts file in CoreDNS.reset() or cleaning up a backup tarfile in BackupManager.import_backup(), pass any OSError to sys_resolution.check_oserror() so known filesystem issues (e.g. EBADMSG) mark the system unhealthy early. For the backup paths the check only applies to local locations (default and cloud backup), matching the existing handling in remove() and _copy_to_location(). This also covers the second unlink in import_backup() (cleanup after a failed load) and stops OSError from bubbling out of both cleanup paths unhandled to the job: the error is now logged, and the method still returns None or raises the original BackupInvalidError. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>