summaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-core/af-main/af-main/init-afm-dirs.service
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2016-12-14 14:08:16 +0100
committerAnton Gerasimov <anton@advancedtelematic.com>2016-12-14 14:08:16 +0100
commit524e55787139d2eb728106871499023daa95aba6 (patch)
treecd20517ca1f37b99d2a5788bb7904242bc981f88 /meta-app-framework/recipes-core/af-main/af-main/init-afm-dirs.service
parent73a342a1f0a333fb8553cc07e3ec60ee24c9079c (diff)
Move all writable data used by security-manager and appfw to /var
The purpose of these changes is to make OSTree and AppFw update domains compatible with each other. Some intergation code is also needed to deploy initial data to writable area (see SPEC-359 in Jira). Bug-AGL: SPEC-359 Change-Id: Iccba1e9916c569167df2922ad5e2d90cc33f06fe Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
Diffstat (limited to 'meta-app-framework/recipes-core/af-main/af-main/init-afm-dirs.service')
-rw-r--r--meta-app-framework/recipes-core/af-main/af-main/init-afm-dirs.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-app-framework/recipes-core/af-main/af-main/init-afm-dirs.service b/meta-app-framework/recipes-core/af-main/af-main/init-afm-dirs.service
new file mode 100644
index 0000000..7e3b9e4
--- /dev/null
+++ b/meta-app-framework/recipes-core/af-main/af-main/init-afm-dirs.service
@@ -0,0 +1,15 @@
+#
+# Install security-manager DB to /var
+
+[Unit]
+Description=Deploy AFM directories to /var
+After=sysinit.target
+Before=afm-system-daemon.service
+Before=afm-user-daemon.service
+
+[Install]
+WantedBy=default.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/init-afm-dirs.sh