diff --git a/supervisor/resolution/fixups/mount_execute_remove.py b/supervisor/resolution/fixups/mount_execute_remove.py index 6d826d630..26850ff61 100644 --- a/supervisor/resolution/fixups/mount_execute_remove.py +++ b/supervisor/resolution/fixups/mount_execute_remove.py @@ -24,6 +24,8 @@ class FixupMountExecuteRemove(FixupBase): await self.sys_mounts.remove_mount(reference) except MountNotFound: _LOGGER.warning("Can't find mount %s for fixup", reference) + else: + self.sys_mounts.save_data() @property def suggestion(self) -> SuggestionType: diff --git a/tests/resolution/fixup/test_mount_execute_remove.py b/tests/resolution/fixup/test_mount_execute_remove.py index fbe77841d..74c9c6787 100644 --- a/tests/resolution/fixup/test_mount_execute_remove.py +++ b/tests/resolution/fixup/test_mount_execute_remove.py @@ -50,3 +50,4 @@ async def test_fixup( assert systemd_service.StopUnit.calls == [ ("mnt-data-supervisor-mounts-test.mount", "fail") ] + coresys.mounts.save_data.assert_called_once()