Michael Vogt 8657aaf80b Import patches-unapplied version 2.297 to ubuntu/vivid-proposed
Imported using git-ubuntu import.

Changelog parent: 1aff015ce1318f1ae128d9b21d50fdb86b3b7bc8

New changelog entries:
  * fix device.tar.gz generation for snappy
  * lp:~ubuntu-on-ec2/livecd-rootfs/cpc2:
    - build cloud based images using livecd-rootfs
2015-04-09 14:43:25 +00:00

19 lines
467 B
Bash
Executable File

#!/bin/bash
#
# Disable IPv6 privacy extensions on Utopic and later
#
codename=$(sh -c 'lsb_release --short --codename')
dist_ge() { [[ "$1" > "$2" || "$1" == "$2" ]]; }
if ! dist_ge "${codename}" "trusty"; then
exit 0
fi
cat << EOF > /etc/sysctl.d/99-cloudimg-ipv6.conf
# Written by the Cloud Image build process
# See https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1068756
net.ipv6.conf.all.use_tempaddr = 0
net.ipv6.conf.default.use_tempaddr = 0
EOF