v1.3.2
Pre-releaseChange
Adopting and adapting Jolla's recent changes (released in SailfishOS 4.0.1) to support configurable, additional mount options per files residing in /var/lib/environment/udisks2/
.
mount-sdcard now evaluates up to two configuration files there for each partition mounted by it, i.e. mount-sd.conf
for all partitions it mounts, plus mount-sd@<device-name>.conf
for a partition with a matching device-name (e.g., mmcblk1p1). Setting a variable (e.g., differently) in mount-sd@<device-name>.conf
will override the assignment of this variable in mount-sd.conf
. If any of these files are empty or non-existent, they are ignored.
Currently only the variable UDISKS2_MOUNT_OPTIONS
is evaluated by mount-sdcard, all other variables set in aforementioned configuration files are ignored.
mount-sdcard deploys /var/lib/environment/udisks2/mount-sd.conf
, containing the single line UDISKS2_MOUNT_OPTIONS="-o noexec"
followed by a newline character ("\n
").
- If you do not want mount-sdcard to mount partitions with
-o noexec
(mind that they are unencrypted on an easily removable and reinsertable SD-card), do not remove this file! It will be redeployed by the next update of mount-sdcard.
Instead empty it, either completely (resulting in an empty file) or just the variable assignment (i.e., toUDISKS2_MOUNT_OPTIONS=
). - Mind that the mount options for
udisksctl mount
are filtered by udisks, which refuses to mount if an option is not allowed (e.g. "lazytime"). - For details of these configuration files' file format, see https://www.freedesktop.org/software/systemd/man/systemd.exec.html#EnvironmentFile=
See also bullet point "Since v1.3.4 ..." in mount-sdcard's README.md for describing the same content in other words; but that was updated to v1.3.4 and later (see also addendum below), in contrast to these release notes, which still describe v1.3.2.
Addendum: Note that per v1.3.4, mount-sd.conf
was renamed to mount-sd@.conf
to provide a consistent naming scheme.