From 06877188c70456c1be98cbeae2c4a648509bdc4d Mon Sep 17 00:00:00 2001 From: Bjoern Doebel Date: Mon, 26 May 2025 11:55:46 +0200 Subject: tools: adjust EC2 rootfs network configuration In a previous change (https://github.com/google/syzkaller/pull/6023) we made a simplification, assuming that a non-existent Match section in systemd networkd's config would allow DHCP for any network interface. After more testing this turns out to be incorrect and we really only get an IP via DHCP with an explicit broad Name regex. Signed-off-by: Bjoern Doebel --- tools/create-ec2-rootfs.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/create-ec2-rootfs.sh b/tools/create-ec2-rootfs.sh index 1ff138a04..de74f6b06 100755 --- a/tools/create-ec2-rootfs.sh +++ b/tools/create-ec2-rootfs.sh @@ -135,6 +135,9 @@ dnf install -y \ systemctl enable systemd-networkd cat << EOF > /etc/systemd/network/ether.network +[Match] +Name=* + [Network] DHCP=yes EOF -- cgit mrf-deployment