Manually apply #92 on new finalize script used to build V3 base boxes
This commit is contained in:
parent
36f8472614
commit
c3e6eb4e51
2 changed files with 14 additions and 6 deletions
|
@ -66,12 +66,19 @@ EOF
|
||||||
$hostname
|
$hostname
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# set the host in case it is not set so that sudo does not complain about the host
|
# set minimal hosts
|
||||||
if ! (grep -q $hostname $rootfs/etc/hosts); then
|
cat <<EOF > $rootfs/etc/hosts
|
||||||
chroot $rootfs sed -i -e \
|
127.0.0.1 localhost
|
||||||
"s/^127.0.0.1\(\s\+\)localhost$/127.0.0.1\1localhost\n127.0.0.1\1${hostname}/g" \
|
127.0.1.1 $hostname
|
||||||
/etc/hosts >/dev/null 2>&1 || true
|
|
||||||
fi
|
# The following lines are desirable for IPv6 capable hosts
|
||||||
|
::1 ip6-localhost ip6-loopback
|
||||||
|
fe00::0 ip6-localnet
|
||||||
|
ff00::0 ip6-mcastprefix
|
||||||
|
ff02::1 ip6-allnodes
|
||||||
|
ff02::2 ip6-allrouters
|
||||||
|
ff02::3 ip6-allhosts
|
||||||
|
EOF
|
||||||
|
|
||||||
# set default locale
|
# set default locale
|
||||||
cat <<EOF > $rootfs/etc/locale.gen
|
cat <<EOF > $rootfs/etc/locale.gen
|
||||||
|
|
|
@ -67,6 +67,7 @@ fe00::0 ip6-localnet
|
||||||
ff00::0 ip6-mcastprefix
|
ff00::0 ip6-mcastprefix
|
||||||
ff02::1 ip6-allnodes
|
ff02::1 ip6-allnodes
|
||||||
ff02::2 ip6-allrouters
|
ff02::2 ip6-allrouters
|
||||||
|
ff02::3 ip6-allhosts
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ ! -f $rootfs/etc/init/container-detect.conf ]; then
|
if [ ! -f $rootfs/etc/init/container-detect.conf ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue