summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Schmidt <stefan.schmidt@huawei.com>2021-03-04 20:35:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-06 22:39:04 +0000
commit78df4ab73e9260184f4d4b31984ba7b30b340fa0 (patch)
treeeb605e89c21a164f6ecf2cf1ed0e71d9d0af83e8
parent0904a74e33bff614bb3478f4a08aa4c7e1a0683a (diff)
downloadpoky-78df4ab73e9260184f4d4b31984ba7b30b340fa0.tar.gz
systemd-conf: do not ask for DHCP if configured on kernel command line
In cases where we configure the IP address and more on the kernel command line with ip= we should not ask for DHCP with systemd-networkd later on. We have such a setup with our runqemu script. With this match in place we can also deploy this unit on qemu systems. (From OE-Core rev: 8c4981e740c0e630200dbc77c9e3dfd3e43b790b) Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/systemd/systemd-conf/wired.network1
-rw-r--r--meta/recipes-core/systemd/systemd-conf_247.3.bb3
2 files changed, 1 insertions, 3 deletions
diff --git a/meta/recipes-core/systemd/systemd-conf/wired.network b/meta/recipes-core/systemd/systemd-conf/wired.network
index 09367edb10..e7b69970d6 100644
--- a/meta/recipes-core/systemd/systemd-conf/wired.network
+++ b/meta/recipes-core/systemd/systemd-conf/wired.network
@@ -1,6 +1,7 @@
1[Match] 1[Match]
2Type=ether 2Type=ether
3KernelCommandLine=!nfsroot 3KernelCommandLine=!nfsroot
4KernelCommandLine=!ip
4 5
5[Network] 6[Network]
6DHCP=yes 7DHCP=yes
diff --git a/meta/recipes-core/systemd/systemd-conf_247.3.bb b/meta/recipes-core/systemd/systemd-conf_247.3.bb
index 944b56ff82..ea35e83f4f 100644
--- a/meta/recipes-core/systemd/systemd-conf_247.3.bb
+++ b/meta/recipes-core/systemd/systemd-conf_247.3.bb
@@ -29,9 +29,6 @@ do_install() {
29# Based on change from YP bug 8141, OE commit 5196d7bacaef1076c361adaa2867be31759c1b52 29# Based on change from YP bug 8141, OE commit 5196d7bacaef1076c361adaa2867be31759c1b52
30do_install_append_qemuall() { 30do_install_append_qemuall() {
31 install -D -m0644 ${WORKDIR}/system.conf-qemuall ${D}${systemd_unitdir}/system.conf.d/01-${PN}.conf 31 install -D -m0644 ${WORKDIR}/system.conf-qemuall ${D}${systemd_unitdir}/system.conf.d/01-${PN}.conf
32
33 # Do not install wired.network for qemu bsps
34 rm -rf ${D}${systemd_unitdir}/network
35} 32}
36 33
37PACKAGE_ARCH = "${MACHINE_ARCH}" 34PACKAGE_ARCH = "${MACHINE_ARCH}"