From e809052e29561da1057c050675e214a2af2a6c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Wed, 22 Jan 2020 18:07:06 +0100 Subject: [PATCH] Accept router advertisements on all images (SLAAC) --- debian-uncloud-image.sh | 3 +++ fedora-uncloud-image.sh | 5 ++++- ubuntu-unclound-image.sh | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian-uncloud-image.sh b/debian-uncloud-image.sh index acdf7ba..a3d462b 100755 --- a/debian-uncloud-image.sh +++ b/debian-uncloud-image.sh @@ -93,6 +93,9 @@ cat > /mnt/etc/hosts << EOF EOF +# Accept router advertisements for SLAAC. +run_root sysctl -w net.ipv6.conf.all.accept_ra=1 + # Configure package sources and update package index. cat >/mnt/etc/apt/sources.list < /mnt/etc/hosts << EOF EOF -# Initalize base services. +# Accept router advertisements for SLAAC. +run_root sysctl -w net.ipv6.conf.all.accept_ra=1 + +# Initialize base services. run_root systemd-machine-id-setup run_root ln -sf /usr/share/zoneinfo/UTC /etc/localtime diff --git a/ubuntu-unclound-image.sh b/ubuntu-unclound-image.sh index 61edc7c..bfd5bc0 100755 --- a/ubuntu-unclound-image.sh +++ b/ubuntu-unclound-image.sh @@ -93,6 +93,9 @@ cat > /mnt/etc/hosts << EOF EOF +# Accept router advertisements for SLAAC. +run_root sysctl -w net.ipv6.conf.all.accept_ra=1 + # Configure package sources and update package index. cat >/mnt/etc/apt/sources.list <