From 9b398521f150691489faac873105c7c12d909b12 Mon Sep 17 00:00:00 2001 From: Paul Mars Date: Thu, 18 Jul 2024 17:09:35 +0200 Subject: [PATCH] Make sure there is a hostname on test machines Signed-off-by: Paul Mars --- spread.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spread.yaml b/spread.yaml index b8e3def4..8164492a 100644 --- a/spread.yaml +++ b/spread.yaml @@ -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