aboutsummaryrefslogtreecommitdiffstats
path: root/tools/create-ec2-rootfs.sh
diff options
context:
space:
mode:
authorBjoern Doebel <doebel@amazon.de>2025-05-26 11:55:46 +0200
committerTaras Madan <tarasmadan@google.com>2025-05-26 10:48:37 +0000
commit06877188c70456c1be98cbeae2c4a648509bdc4d (patch)
treea666b8a3f6c3c614f5e8c97cb3cf24334a057d59 /tools/create-ec2-rootfs.sh
parent2d4582d099a642b87e772556dd97b1b54d227861 (diff)
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 <doebel@amazon.de>
Diffstat (limited to 'tools/create-ec2-rootfs.sh')
-rwxr-xr-xtools/create-ec2-rootfs.sh3
1 files changed, 3 insertions, 0 deletions
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