No longer restricting the Controller from unmounting the wrolpi drive.

This commit is contained in:
Roland 2026-02-14 17:30:07 -07:00
parent eef1225bb4
commit c6c0960613
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
2 changed files with 1 additions and 32 deletions

View file

@ -293,14 +293,6 @@ class TestUnmountDrive:
assert result["success"] is False
assert "Docker" in result["error"]
def test_protects_primary_wrolpi_mount(self):
"""Should protect /media/wrolpi from accidental unmount."""
with mock.patch("controller.lib.disks.is_docker_mode", return_value=False):
with mock.patch("controller.lib.disks.get_config", return_value={"drives": {}}):
result = unmount_drive("/media/wrolpi")
assert result["success"] is False
assert "Cannot unmount /media/wrolpi" in result["error"]
def test_unmounts_successfully(self):
"""Should unmount successfully."""
with mock.patch("controller.lib.disks.is_docker_mode", return_value=False):