summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core/recipes-support/udisks/udisks2_%.bbappend
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2020-01-22 19:46:20 -0500
committerScott Murray <scott.murray@konsulko.com>2020-01-22 19:48:23 -0500
commita5110d6031ecd5343114d74d2b463234342c12a0 (patch)
tree851e3bf2ebb6fce0d2d2a5b0328c9828b28ab719 /meta-agl-profile-core/recipes-support/udisks/udisks2_%.bbappend
parent9c0f950122472154f3a87cb231b832a6b5d0617f (diff)
meta-agl-profile-core: switch to udisks2
The udisks recipe was dropped from meta-oe in zeus, rework our bbappend to work with udisks2 which replaces it. Bug-AGL: SPEC-2932 Change-Id: I9ac1a25ee5a816d06874a5c859034f2c2758d117 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'meta-agl-profile-core/recipes-support/udisks/udisks2_%.bbappend')
-rw-r--r--meta-agl-profile-core/recipes-support/udisks/udisks2_%.bbappend22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-agl-profile-core/recipes-support/udisks/udisks2_%.bbappend b/meta-agl-profile-core/recipes-support/udisks/udisks2_%.bbappend
new file mode 100644
index 000000000..27cac6592
--- /dev/null
+++ b/meta-agl-profile-core/recipes-support/udisks/udisks2_%.bbappend
@@ -0,0 +1,22 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI += "file://automount.service \
+ file://automount.sh \
+"
+
+SYSTEMD_AUTO_ENABLE = "enable"
+SYSTEMD_SERVICE_${PN} += "automount.service"
+
+do_install_append () {
+ sed -i 's/^WantedBy=.*/WantedBy=multi-user.target/' ${D}${systemd_unitdir}/system/udisks2.service
+
+ install -d ${D}${base_libdir}/systemd/system
+ install -m 0644 ${WORKDIR}/automount.service ${D}${systemd_unitdir}/system
+
+ install -d ${D}${libexecdir}
+ install -m 0755 ${WORKDIR}/automount.sh ${D}${libexecdir}/automount.sh
+}
+
+FILES_${PN} += "${base_libdir}/systemd/system/automount.service \
+ ${libexecdir}/automount.sh \
+"