summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core/recipes-support/udisks
diff options
context:
space:
mode:
Diffstat (limited to 'meta-agl-profile-core/recipes-support/udisks')
-rw-r--r--meta-agl-profile-core/recipes-support/udisks/files/99-udisks2.rules5
-rw-r--r--meta-agl-profile-core/recipes-support/udisks/udisks2_%.bbappend4
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 \