From 154ae1ebef9d42e01dfacbfe5edee1ff3cc3195f Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Thu, 3 Oct 2019 15:42:01 +0300 Subject: Remove default hostname from ubuntu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removing the default hostname makes system create unique hostname based on the IP address. This is needed to make NFS operations reliable. Task-number: QTQAINFRA-3257 Change-Id: I9e4dc4950f5d1a1b7f85372674f79d1701d1eab6 Reviewed-by: Tony Sarajärvi --- coin/provisioning/qtci-linux-Ubuntu-18.04-x86_64/01-systemsetup.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'coin/provisioning/qtci-linux-Ubuntu-18.04-x86_64') diff --git a/coin/provisioning/qtci-linux-Ubuntu-18.04-x86_64/01-systemsetup.sh b/coin/provisioning/qtci-linux-Ubuntu-18.04-x86_64/01-systemsetup.sh index 96bf23f8..5198e230 100755 --- a/coin/provisioning/qtci-linux-Ubuntu-18.04-x86_64/01-systemsetup.sh +++ b/coin/provisioning/qtci-linux-Ubuntu-18.04-x86_64/01-systemsetup.sh @@ -57,6 +57,9 @@ echo "Setting up workaround for Ubuntu systemd resolve bug" sudo rm -f /etc/resolv.conf sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf +# remove hostname to get unique based on IP address +sudo rm /etc/hostname + echo "Set Network Test Server address to $NTS_IP in /etc/hosts" echo "$NTS_IP qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts -- cgit v1.2.3