manila-image-elements/elements/manila-ubuntu-minimal/post-install.d/50-update-hosts-config
vponomaryov 5ddd59814a Use ubuntu-minimal instead of ubuntu-core
Support of ubuntu-core was dropped and now it is impossible to
continue using it. Therefore, start using ubuntu-minimal OS element
for building image.

Also, add 'other-requirements.txt' file with list of required system
packages to be installed prior to buidling image.

Change-Id: Ief7059b9e6cc2aad03c81225663f5313a8d2f5f2
Closes-Bug: #1586351
2016-05-31 19:43:31 +03:00

12 lines
246 B
Bash
Executable File

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
# Update 'hosts' file with dn-ip predefinitions
hosts_config="/etc/hosts"
echo "127.0.0.1 ubuntu localhost localhost.localdomain" >> $hosts_config