Closed intelfx closed 4 years ago
Hi,
apologies for ignoring this for so long:( I hadn't spent much time on udiskie for some time, but will now try to respond faster.
The issue you are observing is in fact, I believe, intended behaviour: since the HintSystem
flag is unreliable in subdevices (e.g. luks plaintext devices) and usually shows true
even for plaintext devices that are served from external devices, udiskie has a workaround that resolves is_external
through their parent device (i.e. the crypto device) so that it can by default make use of crypto partitions that are provided from external devices.
This will somewhat change in the upcoming release (2.1.0
) as a fix for #198, see c40b1eeea0817131ee37e59dc3abce2f6c44eb0e. After considering your issue, I have further simplified udiskie's behaviour (0e0ecb722a5b9a30ac2e4b76a78cf7cf412adc92) to using the HintSystem
property directly again, which should prevent further such irritations. The problem with not accidentally hiding subdevices of external devices is now solved by modifying the default filter to match is_external
only in combination with is_toplevel
. This will also be in place starting with 2.1.0
.
If you're still having this issue after upgrading to 2.1.0
, please give me a note.
By the way: if you want udiskie to ignore these devices, I recommend filtering by a different more reliable property, e.g. id_uuid
or id_type
.
Best, Thomas
I'm using udiskie 2.8.4 (Arch Linux) on a headless NAS to automount all external USB drives when they are plugged in. Udiskie is started as a systemd user service:
With the following config:
These are block devices attached to the NAS:
Here,
sd[c-f]
are parts of a LUKS-encrypted multi-device btrfs array, andstorage[1-4]
are their decrypted counterparts. Thesdg1
is an external USB HDD which I would like to mount.At this point, the UDisks2 state looks like this:
One of these
dm-[0-3]
entries:HintSystem
istrue
on this block device, so in theory it should match the first rule in my config. But that does not happen:Even more strangely, the array is "only" mounted 3 times out of 4, despite the log says the
ignore=False
rule matches all 4 block devices.(full log: http://ix.io/1R1p)