Fedora image: initialize /etc/hosts

This commit is contained in:
fnux 2019-12-09 08:48:31 +01:00
parent 1ed76eaf87
commit a666916a72
1 changed files with 7 additions and 0 deletions

View File

@ -110,6 +110,13 @@ mount --bind /sys /mnt/sys
# TODO: use non-$BIGCORP DNS service.
echo 'nameserver 1.1.1.1' >> /mnt/etc/resolv.conf
# Initialize /etc/hosts.
cat > /mnt/etc/hosts << EOF
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
EOF
# See https://github.com/OpenNebula/addon-context-linux/issues/121 for details.
# network-scripts.x86_64 : Legacy scripts for manipulating of network devices
run_root dnf -y install network-scripts