summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo@opensourcefoundries.com>2018-04-02 13:16:34 -0300
committerPhil Wise <philip.wise@here.com>2018-05-11 15:59:13 +0200
commit28f18be41d4b01dc5208159fd569f3820264b16e (patch)
treefaf206f89184cc5937c0a8be78f6184b446a1cac
parent2bb77315b00a4e31287cefd43c5ff42b0698f5b6 (diff)
downloadmeta-updater-28f18be41d4b01dc5208159fd569f3820264b16e.tar.gz
aktualizr: include default configs as part of host-tools
Provide the default sota configs as part of host-tools so they can be used by aktualizr_cert_provider and aktualizr_implicit_writer. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
-rwxr-xr-x[-rw-r--r--]recipes-sota/aktualizr/aktualizr_git.bb10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb
index c146268..95c36fa 100644..100755
--- a/recipes-sota/aktualizr/aktualizr_git.bb
+++ b/recipes-sota/aktualizr/aktualizr_git.bb
@@ -56,6 +56,11 @@ do_install_append () {
56 rm -fr ${D}${libdir}/systemd 56 rm -fr ${D}${libdir}/systemd
57 rm -f ${D}${libdir}/sota/sota.toml # Only needed for the Debian package 57 rm -f ${D}${libdir}/sota/sota.toml # Only needed for the Debian package
58 install -m 0700 -d ${D}${libdir}/sota/conf.d 58 install -m 0700 -d ${D}${libdir}/sota/conf.d
59 install -m 0644 ${S}/config/sota_autoprov.toml ${D}/${libdir}/sota/sota_autoprov.toml
60 install -m 0644 ${S}/config/sota_autoprov_primary.toml ${D}/${libdir}/sota/sota_autoprov_primary.toml
61 install -m 0644 ${S}/config/sota_hsm_prov.toml ${D}/${libdir}/sota/sota_hsm_prov.toml
62 install -m 0644 ${S}/config/sota_implicit_prov.toml ${D}/${libdir}/sota/sota_implicit_prov.toml
63 install -m 0644 ${S}/config/sota_implicit_prov_ca.toml ${D}/${libdir}/sota/sota_implicit_prov_ca.toml
59 install -m 0644 ${S}/config/sota_secondary.toml ${D}/${libdir}/sota/sota_secondary.toml 64 install -m 0644 ${S}/config/sota_secondary.toml ${D}/${libdir}/sota/sota_secondary.toml
60 install -d ${D}${systemd_unitdir}/system 65 install -d ${D}${systemd_unitdir}/system
61 install -m 0644 ${WORKDIR}/aktualizr-secondary.socket ${D}${systemd_unitdir}/system/aktualizr-secondary.socket 66 install -m 0644 ${WORKDIR}/aktualizr-secondary.socket ${D}${systemd_unitdir}/system/aktualizr-secondary.socket
@@ -106,6 +111,11 @@ FILES_${PN}-host-tools = " \
106 ${bindir}/aktualizr_implicit_writer \ 111 ${bindir}/aktualizr_implicit_writer \
107 ${bindir}/garage-deploy \ 112 ${bindir}/garage-deploy \
108 ${bindir}/garage-push \ 113 ${bindir}/garage-push \
114 ${libdir}/sota/sota_autoprov.toml \
115 ${libdir}/sota/sota_autoprov_primary.toml \
116 ${libdir}/sota/sota_hsm_prov.toml \
117 ${libdir}/sota/sota_implicit_prov.toml \
118 ${libdir}/sota/sota_implicit_prov_ca.toml \
109 " 119 "
110 120
111FILES_${PN}-secondary = " \ 121FILES_${PN}-secondary = " \