diff options
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-auto-prov.bb | 7 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb | 4 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-implicit-prov.bb | 4 | ||||
-rw-r--r-- | recipes-sota/aktualizr/files/aktualizr-manual-provision.service | 13 | ||||
-rw-r--r-- | recipes-sota/aktualizr/files/aktualizr.service (renamed from recipes-sota/aktualizr/files/aktualizr-autoprovision.service) | 0 |
5 files changed, 7 insertions, 21 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-auto-prov.bb b/recipes-sota/aktualizr/aktualizr-auto-prov.bb index 4f9fe4f..4436d48 100644 --- a/recipes-sota/aktualizr/aktualizr-auto-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-auto-prov.bb | |||
@@ -11,8 +11,7 @@ PR = "6" | |||
11 | 11 | ||
12 | SRC_URI = " \ | 12 | SRC_URI = " \ |
13 | file://LICENSE \ | 13 | file://LICENSE \ |
14 | file://aktualizr-manual-provision.service \ | 14 | file://aktualizr.service \ |
15 | file://aktualizr-autoprovision.service \ | ||
16 | file://sota_autoprov.toml \ | 15 | file://sota_autoprov.toml \ |
17 | " | 16 | " |
18 | 17 | ||
@@ -38,7 +37,7 @@ do_install_append() { | |||
38 | 37 | ||
39 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then | 38 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then |
40 | install -d ${D}/${systemd_unitdir}/system | 39 | install -d ${D}/${systemd_unitdir}/system |
41 | install -m 0644 ${WORKDIR}/aktualizr-autoprovision.service ${D}/${systemd_unitdir}/system/aktualizr.service | 40 | install -m 0644 ${WORKDIR}/aktualizr.service ${D}/${systemd_unitdir}/system/aktualizr.service |
42 | install -d ${D}${libdir}/sota | 41 | install -d ${D}${libdir}/sota |
43 | install -m "0644" ${WORKDIR}/sota_autoprov.toml ${D}${libdir}/sota/sota.toml | 42 | install -m "0644" ${WORKDIR}/sota_autoprov.toml ${D}${libdir}/sota/sota.toml |
44 | 43 | ||
@@ -51,7 +50,7 @@ do_install_append() { | |||
51 | fi | 50 | fi |
52 | else | 51 | else |
53 | install -d ${D}/${systemd_unitdir}/system | 52 | install -d ${D}/${systemd_unitdir}/system |
54 | install -m 0644 ${WORKDIR}/aktualizr-manual-provision.service ${D}/${systemd_unitdir}/system/aktualizr.service | 53 | install -m 0644 ${WORKDIR}/aktualizr.service ${D}/${systemd_unitdir}/system/aktualizr.service |
55 | fi | 54 | fi |
56 | } | 55 | } |
57 | 56 | ||
diff --git a/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb b/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb index c443c56..33e472b 100644 --- a/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb | |||
@@ -10,7 +10,7 @@ RDEPENDS_${PN} = "aktualizr softhsm softhsm-testtoken" | |||
10 | 10 | ||
11 | SRC_URI = " \ | 11 | SRC_URI = " \ |
12 | file://LICENSE \ | 12 | file://LICENSE \ |
13 | file://aktualizr-autoprovision.service \ | 13 | file://aktualizr.service \ |
14 | file://sota_hsm_test.toml \ | 14 | file://sota_hsm_test.toml \ |
15 | " | 15 | " |
16 | PV = "1.0" | 16 | PV = "1.0" |
@@ -22,7 +22,7 @@ inherit systemd | |||
22 | 22 | ||
23 | do_install() { | 23 | do_install() { |
24 | install -d ${D}/${systemd_unitdir}/system | 24 | install -d ${D}/${systemd_unitdir}/system |
25 | install -m 0644 ${WORKDIR}/aktualizr-autoprovision.service ${D}/${systemd_unitdir}/system/aktualizr.service | 25 | install -m 0644 ${WORKDIR}/aktualizr.service ${D}/${systemd_unitdir}/system/aktualizr.service |
26 | install -d ${D}${libdir}/sota | 26 | install -d ${D}${libdir}/sota |
27 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} --no-root-ca \ | 27 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} --no-root-ca \ |
28 | -i ${WORKDIR}/sota_hsm_test.toml -o ${D}${libdir}/sota/sota.toml -p ${D} | 28 | -i ${WORKDIR}/sota_hsm_test.toml -o ${D}${libdir}/sota/sota.toml -p ${D} |
diff --git a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb index 21e38c9..a1db87f 100644 --- a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb | |||
@@ -11,7 +11,7 @@ PR = "1" | |||
11 | 11 | ||
12 | SRC_URI = " \ | 12 | SRC_URI = " \ |
13 | file://LICENSE \ | 13 | file://LICENSE \ |
14 | file://aktualizr-autoprovision.service \ | 14 | file://aktualizr.service \ |
15 | file://sota_implicit_prov.toml \ | 15 | file://sota_implicit_prov.toml \ |
16 | " | 16 | " |
17 | 17 | ||
@@ -21,7 +21,7 @@ inherit systemd | |||
21 | 21 | ||
22 | do_install() { | 22 | do_install() { |
23 | install -d ${D}/${systemd_unitdir}/system | 23 | install -d ${D}/${systemd_unitdir}/system |
24 | install -m 0644 ${WORKDIR}/aktualizr-autoprovision.service ${D}/${systemd_unitdir}/system/aktualizr.service | 24 | install -m 0644 ${WORKDIR}/aktualizr.service ${D}/${systemd_unitdir}/system/aktualizr.service |
25 | install -d ${D}${libdir}/sota | 25 | install -d ${D}${libdir}/sota |
26 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} \ | 26 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} \ |
27 | -i ${WORKDIR}/sota_implicit_prov.toml -o ${D}${libdir}/sota/sota.toml -p ${D} | 27 | -i ${WORKDIR}/sota_implicit_prov.toml -o ${D}${libdir}/sota/sota.toml -p ${D} |
diff --git a/recipes-sota/aktualizr/files/aktualizr-manual-provision.service b/recipes-sota/aktualizr/files/aktualizr-manual-provision.service deleted file mode 100644 index a70f2f9..0000000 --- a/recipes-sota/aktualizr/files/aktualizr-manual-provision.service +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | [Unit] | ||
2 | Description=Aktualizr SOTA Client | ||
3 | Wants=network-online.target | ||
4 | After=network.target network-online.target | ||
5 | Requires=network-online.target | ||
6 | |||
7 | [Service] | ||
8 | RestartSec=10 | ||
9 | Restart=always | ||
10 | ExecStart=/usr/bin/aktualizr --config /sysroot/boot/sota.toml --loglevel 2 | ||
11 | |||
12 | [Install] | ||
13 | WantedBy=multi-user.target | ||
diff --git a/recipes-sota/aktualizr/files/aktualizr-autoprovision.service b/recipes-sota/aktualizr/files/aktualizr.service index 8cb8d78..8cb8d78 100644 --- a/recipes-sota/aktualizr/files/aktualizr-autoprovision.service +++ b/recipes-sota/aktualizr/files/aktualizr.service | |||