summaryrefslogtreecommitdiffstats
path: root/recipes-support/udisks/udisks_1.0.5.bbappend
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-07-09 03:19:30 +0000
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-07-09 05:52:18 +0000
commitd1a3ac4fbbd235db1f3662d619f44d82c19fe716 (patch)
tree8739441d002fb945cd54e31cfcb4f496628a45cb /recipes-support/udisks/udisks_1.0.5.bbappend
parent1f81a10af3d8c201d495fddc99a663595b6b89fa (diff)
udisks: make automount it's own service
To avoid a timeout condition in udisks.service the automount script needs to be ran as it's own systemd service. Bug-AGL: SPEC-735 Change-Id: Idbfb21b1a2fccfa55ac149830d4af591222b697d Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'recipes-support/udisks/udisks_1.0.5.bbappend')
-rw-r--r--recipes-support/udisks/udisks_1.0.5.bbappend10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-support/udisks/udisks_1.0.5.bbappend b/recipes-support/udisks/udisks_1.0.5.bbappend
index eee64eeec..d55a167a6 100644
--- a/recipes-support/udisks/udisks_1.0.5.bbappend
+++ b/recipes-support/udisks/udisks_1.0.5.bbappend
@@ -1,10 +1,17 @@
SRC_URI += "file://org.freedesktop.UDisks.conf \
file://udisks.service \
+ file://automount.service \
file://automount.sh \
"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+FILES_${PN} += "${base_libdir}/systemd/system/automount.service \
+ ${base_libdir}/systemd/system/udisks.service \
+ ${libexecdir}/automount.sh \
+ "
+
SYSTEMD_AUTO_ENABLE = "enable"
+SYSTEMD_SERVICE_${PN} = "udisks.service automount.service"
do_install_append () {
install -d ${D}${sysconfdir}/dbus-1/system.d
@@ -13,6 +20,9 @@ do_install_append () {
install -d ${D}${base_libdir}/systemd/system
install -m 0644 ${WORKDIR}/udisks.service ${D}${base_libdir}/systemd/system
+ install -d ${D}${base_libdir}/systemd/system
+ install -m 0644 ${WORKDIR}/automount.service ${D}${base_libdir}/systemd/system
+
install -d ${D}${libexecdir}
install -m 0755 ${WORKDIR}/automount.sh ${D}${libexecdir}/automount.sh
}