summaryrefslogtreecommitdiffstats
path: root/recipes-test
diff options
context:
space:
mode:
authorPhil Wise <phil@advancedtelematic.com>2018-03-27 14:06:38 +0200
committerPhil Wise <phil@advancedtelematic.com>2018-03-27 14:06:38 +0200
commitde2b0f06546666aacf9dd2fce94e0134768c6a3b (patch)
tree178a61aca1440bce83557113485380f8ea3b36be /recipes-test
parent7ce65035d63107605e07ecb1d923be63ecaa1ec9 (diff)
downloadmeta-updater-de2b0f06546666aacf9dd2fce94e0134768c6a3b.tar.gz
Add SOTA client feature to enable secondary network
Also add a test for the 'primary-image'
Diffstat (limited to 'recipes-test')
-rw-r--r--recipes-test/demo-network-config/files/27-dhcp-client-external.network6
-rw-r--r--recipes-test/demo-network-config/secondary-network-config.bb6
-rw-r--r--recipes-test/images/secondary-image.bb2
3 files changed, 13 insertions, 1 deletions
diff --git a/recipes-test/demo-network-config/files/27-dhcp-client-external.network b/recipes-test/demo-network-config/files/27-dhcp-client-external.network
new file mode 100644
index 0000000..ba49593
--- /dev/null
+++ b/recipes-test/demo-network-config/files/27-dhcp-client-external.network
@@ -0,0 +1,6 @@
1[Match]
2Name=enp0s3
3
4[Network]
5Description=External network for secondary
6DHCP=yes
diff --git a/recipes-test/demo-network-config/secondary-network-config.bb b/recipes-test/demo-network-config/secondary-network-config.bb
index 492d3ca..9091c65 100644
--- a/recipes-test/demo-network-config/secondary-network-config.bb
+++ b/recipes-test/demo-network-config/secondary-network-config.bb
@@ -3,7 +3,10 @@ LICENSE = "CLOSED"
3 3
4inherit allarch 4inherit allarch
5 5
6SRC_URI = "file://26-dhcp-client.network" 6SRC_URI = "\
7 file://26-dhcp-client.network \
8 file://27-dhcp-client-external.network \
9 "
7 10
8 11
9FILES_${PN} = "/usr/lib/systemd/network" 12FILES_${PN} = "/usr/lib/systemd/network"
@@ -13,4 +16,5 @@ PR = "1"
13do_install() { 16do_install() {
14 install -d ${D}/usr/lib/systemd/network 17 install -d ${D}/usr/lib/systemd/network
15 install -m 0644 ${WORKDIR}/26-dhcp-client.network ${D}/usr/lib/systemd/network/ 18 install -m 0644 ${WORKDIR}/26-dhcp-client.network ${D}/usr/lib/systemd/network/
19 install -m 0644 ${WORKDIR}/27-dhcp-client-external.network ${D}/usr/lib/systemd/network/
16} 20}
diff --git a/recipes-test/images/secondary-image.bb b/recipes-test/images/secondary-image.bb
index c1ce57a..02153d0 100644
--- a/recipes-test/images/secondary-image.bb
+++ b/recipes-test/images/secondary-image.bb
@@ -13,6 +13,8 @@ IMAGE_INSTALL_remove = " \
13 aktualizr-ca-implicit-prov \ 13 aktualizr-ca-implicit-prov \
14 aktualizr-hsm-prov \ 14 aktualizr-hsm-prov \
15 aktualizr-implicit-prov \ 15 aktualizr-implicit-prov \
16 connman \
17 connman-client \
16 " 18 "
17 19
18IMAGE_INSTALL_append = " \ 20IMAGE_INSTALL_append = " \