From c3d0a4ca64522364de82f4574a6cdc5c8c012633 Mon Sep 17 00:00:00 2001
From: Stefan Schmidt <stefan.schmidt@huawei.com>
Date: Wed, 24 Feb 2021 08:44:56 +0100
Subject: [PATCH] systemd-conf: bring back dhcp for wired interfaces on Qemu

This file gets removed in the upstream poky recipe for qemuall due to
problems with it in the Yocto autobuilder QA.

On our side we need it in combination with spread so we bring it back
here. Next step would be to investigate why it fails on Yocto QA and get
it fixed upstream.

Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
---
 .../recipes-core/systemd-conf/systemd-conf_%.bbappend          | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 meta-ohos-core/recipes-core/systemd-conf/systemd-conf_%.bbappend

diff --git a/meta-ohos-core/recipes-core/systemd-conf/systemd-conf_%.bbappend b/meta-ohos-core/recipes-core/systemd-conf/systemd-conf_%.bbappend
new file mode 100644
index 00000000..c8fa81fd
--- /dev/null
+++ b/meta-ohos-core/recipes-core/systemd-conf/systemd-conf_%.bbappend
@@ -0,0 +1,3 @@
+do_install_append_qemuall() {
+        install -D -m0644 ${WORKDIR}/wired.network ${D}${systemd_unitdir}/network/80-wired.network
+}
-- 
GitLab