diff options
author | Scott Murray <scott.murray@konsulko.com> | 2020-02-11 16:44:22 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2020-02-11 16:44:22 -0500 |
commit | e32b0ddf6130dc5b62f86f1f588e6d1fa3b2d07a (patch) | |
tree | 9073035b01d8278ae7a2f3682ff30587197a5ca2 /meta-agl-profile-core/recipes-support | |
parent | 5e3de49a057a7b65ee214552f4584421af29e792 (diff) |
meta-agl-profile-core: tweak udisks2 configuration for AGL
Per discussion on Arch wiki at:
https://wiki.archlinux.org/index.php/Udisks#Mount_to_/media_(udisks2)
add a udev rules file to tweak the UDISKS_FILESYSTEM_SHARED environment
variable to configure udisks2 to use /media as used to be the default
with the older udisks. This restores behavior to what is expected by
the AGL configuration for lightmediascanner.
Bug-AGL: SPEC-2932
Change-Id: I66fda10f71dea889f3cd06341d9daa809bec2aa5
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'meta-agl-profile-core/recipes-support')
-rw-r--r-- | meta-agl-profile-core/recipes-support/udisks/files/99-udisks2.rules | 5 | ||||
-rw-r--r-- | meta-agl-profile-core/recipes-support/udisks/udisks2_%.bbappend | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/meta-agl-profile-core/recipes-support/udisks/files/99-udisks2.rules b/meta-agl-profile-core/recipes-support/udisks/files/99-udisks2.rules new file mode 100644 index 000000000..996e43439 --- /dev/null +++ b/meta-agl-profile-core/recipes-support/udisks/files/99-udisks2.rules @@ -0,0 +1,5 @@ +# UDISKS_FILESYSTEM_SHARED +# ==1: mount filesystem to a shared directory (/media/VolumeName) +# ==0: mount filesystem to a private directory (/run/media/$USER/VolumeName) +# See udisks(8) +ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{UDISKS_FILESYSTEM_SHARED}="1" diff --git a/meta-agl-profile-core/recipes-support/udisks/udisks2_%.bbappend b/meta-agl-profile-core/recipes-support/udisks/udisks2_%.bbappend index 27cac6592..34756f480 100644 --- a/meta-agl-profile-core/recipes-support/udisks/udisks2_%.bbappend +++ b/meta-agl-profile-core/recipes-support/udisks/udisks2_%.bbappend @@ -2,6 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:" SRC_URI += "file://automount.service \ file://automount.sh \ + file://99-udisks2.rules \ " SYSTEMD_AUTO_ENABLE = "enable" @@ -15,6 +16,9 @@ do_install_append () { install -d ${D}${libexecdir} install -m 0755 ${WORKDIR}/automount.sh ${D}${libexecdir}/automount.sh + + install -d ${D}${sysconfdir}/udev/rules.d + install -m 0644 ${WORKDIR}/99-udisks2.rules ${D}${sysconfdir}/udev/rules.d } FILES_${PN} += "${base_libdir}/systemd/system/automount.service \ |