Skip to content

Commit

Permalink
Make sure there is a hostname on test machines
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mars <paul.mars@canonical.com>
  • Loading branch information
upils committed Jul 24, 2024
1 parent 9c1379d commit e308212
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ backends:
path: /home/ubuntu-image

prepare: |
# Make sure there is a hostname file because it could be missing
# We will need it to have debootstrap properly run
if [ ! -f /etc/hostname ]; then
echo "hostname" > /etc/hostname
fi
# NOTE: This part of the code needs to be in spread.yaml as it runs before
# the rest of the source code (including the tests/lib directory) is
# around. The purpose of this code is to fix some connectivity issues and
Expand Down

0 comments on commit e308212

Please sign in to comment.