]> www.infradead.org Git - users/rw/kaktus.git/commitdiff
Enable systemd-networkd with DHCP by default systemd_networkd origin/systemd_networkd
authorRichard Weinberger <richard@nod.at>
Tue, 5 Jul 2022 19:43:02 +0000 (21:43 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 5 Jul 2022 19:43:02 +0000 (21:43 +0200)
Signed-off-by: Richard Weinberger <richard@nod.at>
meta-kaktus/recipes-core/systemd-conf/files/eth.network [new file with mode: 0644]
meta-kaktus/recipes-core/systemd-conf/systemd-conf_%.bbappend [new file with mode: 0644]
meta-kaktus/recipes-core/systemd/systemd_%.bbappend [new file with mode: 0644]

diff --git a/meta-kaktus/recipes-core/systemd-conf/files/eth.network b/meta-kaktus/recipes-core/systemd-conf/files/eth.network
new file mode 100644 (file)
index 0000000..737986d
--- /dev/null
@@ -0,0 +1,5 @@
+[Match]
+Name=eth*
+
+[Network]
+DHCP=v4
diff --git a/meta-kaktus/recipes-core/systemd-conf/systemd-conf_%.bbappend b/meta-kaktus/recipes-core/systemd-conf/systemd-conf_%.bbappend
new file mode 100644 (file)
index 0000000..54a2b92
--- /dev/null
@@ -0,0 +1,14 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
+  
+SRC_URI += " \
+       file://eth.network \
+"
+
+FILES:${PN} += " \
+       ${sysconfdir}/systemd/network/eth.network \
+"
+
+do_install:append() {
+       install -d ${D}${sysconfdir}/systemd/network
+       install -m 0644 ${WORKDIR}/eth.network ${D}${sysconfdir}/systemd/network
+}
diff --git a/meta-kaktus/recipes-core/systemd/systemd_%.bbappend b/meta-kaktus/recipes-core/systemd/systemd_%.bbappend
new file mode 100644 (file)
index 0000000..2599176
--- /dev/null
@@ -0,0 +1 @@
+PACKAGECONFIG += " networkd resolved kmod pam"