Fedora image: initialize /etc/hosts
This commit is contained in:
parent
1ed76eaf87
commit
a666916a72
1 changed files with 7 additions and 0 deletions
|
@ -110,6 +110,13 @@ mount --bind /sys /mnt/sys
|
||||||
# TODO: use non-$BIGCORP DNS service.
|
# TODO: use non-$BIGCORP DNS service.
|
||||||
echo 'nameserver 1.1.1.1' >> /mnt/etc/resolv.conf
|
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.
|
# See https://github.com/OpenNebula/addon-context-linux/issues/121 for details.
|
||||||
# network-scripts.x86_64 : Legacy scripts for manipulating of network devices
|
# network-scripts.x86_64 : Legacy scripts for manipulating of network devices
|
||||||
run_root dnf -y install network-scripts
|
run_root dnf -y install network-scripts
|
||||||
|
|
Loading…
Reference in a new issue