You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the number of "Why does Sailfish OS mounts cards as hash instead of nickname?" bug reports on Sailfish forum,
you might be interested to include the following snippet among your udev rules:
Answer: Not really, because there are too many corner cases when this may go wrong and setting an udisk display name is only of little use, as you already found out.
Other caveats:
File-system labels (LABEL), partition-names per GPT (PARTLABEL) / udisk 's PARTNAME (wherever that comes from; I would have to look that up) is user-supplied data, which may be (ab)used by an attacker to inject special characters, escape sequences etc. Hence they should be filtered properly, rsp. check if the mechanisms employed do that, otherwise perform the filtering expilcitly.
By default these aforementioned three names / labels are all empty!
Software may rely on the UUID-based "names" for mount-points, hence they should always exist. These are designed to be unique, hence they are best suited as primary identifier / path.
Hence I am not considering to include this into mount-sdcard.
But a separate tool may be created, which queries these pretty names, then sets the UDISKS_NAME and a symbolic link to the mount-point, utilising one of these pretty names. The order of this evaluation also has to be well considered and these considerations along with their conclusions have to be documented.
As udev deals with devices, not mount-points, this may be hard or even infeasible to achieve this via udev rules. Implementing this as a shell script seems to be adequate. Would need further investigation.
Olf0
changed the title
[feature suggestion] Consider PARTNAME
[feature suggestion] Write a new tool to query and set pretty names for partitions
Nov 14, 2022
Given the number of "Why does Sailfish OS mounts cards as hash instead of nickname?" bug reports on Sailfish forum,
you might be interested to include the following snippet among your udev rules:
The text was updated successfully, but these errors were encountered: