Tails Installer should not allow installing on non-removable USB sticks
We assume that we can write to removable devices via UDisks, but we don’t filter out of the available destination devices list the ones that have the removable bit set to false, and then of course the installation fails, which is confusing:
[creator.py:817 (partition_device)] INFO: Partitioning device /dev/sda
[creator.py:820 (partition_device)] DEBUG: Creating partition table
[gui.py:259 (run)] ERROR: udisks-error-quark: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation (4)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/tails_installer/gui.py", line 196, in run
self.live.partition_device()
File "/usr/lib/python2.7/dist-packages/tails_installer/creator.py", line 829, in partition_device
cancellable=None)
Error: udisks-error-quark: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation (4)
[gui.py:260 (run)] DEBUG: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/tails_installer/gui.py", line 196, in run
self.live.partition_device()
File "/usr/lib/python2.7/dist-packages/tails_installer/creator.py", line 829, in partition_device
cancellable=None)
Error: udisks-error-quark: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation (4)
Related issues
- Related to #12696 (closed)
- Related to #14446 (closed)
- Related to #15292 (closed)
- Related to #15742 (closed)
- Related to #15989
Original created by @intrigeri on 10731 (Redmine)