diff options
author | Phil Wise <phil@advancedtelematic.com> | 2018-03-27 14:06:38 +0200 |
---|---|---|
committer | Phil Wise <phil@advancedtelematic.com> | 2018-03-27 14:06:38 +0200 |
commit | de2b0f06546666aacf9dd2fce94e0134768c6a3b (patch) | |
tree | 178a61aca1440bce83557113485380f8ea3b36be /recipes-test | |
parent | 7ce65035d63107605e07ecb1d923be63ecaa1ec9 (diff) | |
download | meta-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')
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] | ||
2 | Name=enp0s3 | ||
3 | |||
4 | [Network] | ||
5 | Description=External network for secondary | ||
6 | DHCP=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 | ||
4 | inherit allarch | 4 | inherit allarch |
5 | 5 | ||
6 | SRC_URI = "file://26-dhcp-client.network" | 6 | SRC_URI = "\ |
7 | file://26-dhcp-client.network \ | ||
8 | file://27-dhcp-client-external.network \ | ||
9 | " | ||
7 | 10 | ||
8 | 11 | ||
9 | FILES_${PN} = "/usr/lib/systemd/network" | 12 | FILES_${PN} = "/usr/lib/systemd/network" |
@@ -13,4 +16,5 @@ PR = "1" | |||
13 | do_install() { | 16 | do_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 | ||
18 | IMAGE_INSTALL_append = " \ | 20 | IMAGE_INSTALL_append = " \ |