diff options
| author | Bjoern Doebel <doebel@amazon.de> | 2025-05-26 11:55:46 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2025-05-26 10:48:37 +0000 |
| commit | 06877188c70456c1be98cbeae2c4a648509bdc4d (patch) | |
| tree | a666b8a3f6c3c614f5e8c97cb3cf24334a057d59 /tools/create-ec2-rootfs.sh | |
| parent | 2d4582d099a642b87e772556dd97b1b54d227861 (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-x | tools/create-ec2-rootfs.sh | 3 |
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 |
