tpsd should not try to unlock or delete a Persistent Storage that's on a read-only USB stick
E.g. in wb:9713064e141266b513d7f5fbb75a6aad, Persistent Storage is on [sdb] Write Protect is on
, then when tpsd tries to unlock, unlocking the LUKS device works, but then mounting fails as expected: mount: /live/persistence/TailsData_unlocked: cannot mount /dev/mapper/TailsData_unlocked read-only
.
Similarly, attempting to delete of course fails.
I think we should detect this earlier and report to the user without even trying to unlock, pointing them to recovery doc.
Other reports:
- wb:1091cd7d8cad102b1e3995efd4a31364
- wb:10a8a56a907a909cd7732dbaccc463fc
- wb:e89f2504253202f60f55f832d9543218
Edited by intrigeri