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 <