From de757e7e891465b394a10bafdfe0dca407d46448 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Fri, 21 Apr 2017 06:00:01 +0300 Subject: udisks: auto enable systemd service MediaPlayer needs udisks to be running on startup to detect media removal Bug-AGL: SPEC-483 Change-Id: I57389d3af8f4d2600baa2b24d437646ed1c7414e Signed-off-by: Matt Ranostay --- .../udisks/files/org.freedesktop.UDisks.conf | 32 ++++++++++++++++++++++ recipes-support/udisks/files/udisks.service | 11 ++++++++ recipes-support/udisks/udisks_1.0.5.bbappend | 14 ++++++++++ 3 files changed, 57 insertions(+) create mode 100644 recipes-support/udisks/files/org.freedesktop.UDisks.conf create mode 100644 recipes-support/udisks/files/udisks.service create mode 100644 recipes-support/udisks/udisks_1.0.5.bbappend (limited to 'recipes-support/udisks') diff --git a/recipes-support/udisks/files/org.freedesktop.UDisks.conf b/recipes-support/udisks/files/org.freedesktop.UDisks.conf new file mode 100644 index 000000000..0098b94e1 --- /dev/null +++ b/recipes-support/udisks/files/org.freedesktop.UDisks.conf @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/recipes-support/udisks/files/udisks.service b/recipes-support/udisks/files/udisks.service new file mode 100644 index 000000000..75df55b3e --- /dev/null +++ b/recipes-support/udisks/files/udisks.service @@ -0,0 +1,11 @@ +[Unit] +Description=Disk Manager (legacy version) +Documentation=man:udisks(7) + +[Service] +Type=dbus +BusName=org.freedesktop.UDisks +ExecStart=/usr/libexec/udisks-daemon --no-debug + +[Install] +WantedBy=default.target diff --git a/recipes-support/udisks/udisks_1.0.5.bbappend b/recipes-support/udisks/udisks_1.0.5.bbappend new file mode 100644 index 000000000..2c6b11cc8 --- /dev/null +++ b/recipes-support/udisks/udisks_1.0.5.bbappend @@ -0,0 +1,14 @@ +SRC_URI += "file://org.freedesktop.UDisks.conf \ + file://udisks.service \ + " +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +SYSTEMD_AUTO_ENABLE = "enable" + +do_install_append () { + install -d ${D}${sysconfdir}/dbus-1/system.d + install -m 644 ${WORKDIR}/org.freedesktop.UDisks.conf ${D}${sysconfdir}/dbus-1/system.d/ + + install -d ${D}${base_libdir}/systemd/system + install -m 0644 ${WORKDIR}/udisks.service ${D}${base_libdir}/systemd/system +} -- cgit 1.2.3-korg