[arch-releng] [RFC][PATCH] [configs/releng] Use systemd-networkd instead of dhcpcd
Gerardo Exequiel Pozzi
vmlinuz386 at yahoo.com.ar
Tue Feb 25 19:43:58 EST 2014
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
---
.../releng/root-image/etc/systemd/network/dhcp-on-ethernet.network | 5 +++++
configs/releng/root-image/etc/udev/rules.d/81-dhcpcd.rules | 1 -
configs/releng/root-image/root/customize_root_image.sh | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
create mode 100644 configs/releng/root-image/etc/systemd/network/dhcp-on-ethernet.network
delete mode 100644 configs/releng/root-image/etc/udev/rules.d/81-dhcpcd.rules
diff --git a/configs/releng/root-image/etc/systemd/network/dhcp-on-ethernet.network b/configs/releng/root-image/etc/systemd/network/dhcp-on-ethernet.network
new file mode 100644
index 0000000..aec1849
--- /dev/null
+++ b/configs/releng/root-image/etc/systemd/network/dhcp-on-ethernet.network
@@ -0,0 +1,5 @@
+[Match]
+Name=en*
+
+[Network]
+DHCP=yes
diff --git a/configs/releng/root-image/etc/udev/rules.d/81-dhcpcd.rules b/configs/releng/root-image/etc/udev/rules.d/81-dhcpcd.rules
deleted file mode 100644
index 1c4053c..0000000
--- a/configs/releng/root-image/etc/udev/rules.d/81-dhcpcd.rules
+++ /dev/null
@@ -1 +0,0 @@
-ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="en*|eth*", ENV{SYSTEMD_WANTS}="dhcpcd@$name.service"
diff --git a/configs/releng/root-image/root/customize_root_image.sh b/configs/releng/root-image/root/customize_root_image.sh
index 9c85453..3e01e2d 100755
--- a/configs/releng/root-image/root/customize_root_image.sh
+++ b/configs/releng/root-image/root/customize_root_image.sh
@@ -18,5 +18,5 @@ chmod 440 /etc/sudoers.d/g_wheel
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf
-systemctl enable pacman-init.service choose-mirror.service
+systemctl enable pacman-init.service choose-mirror.service systemd-networkd.service
systemctl set-default multi-user.target
--
1.8.5.2
More information about the arch-releng
mailing list