mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-23 07:06:29 +08:00
Remove default hostname from ubuntu
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 <tony.sarajarvi@qt.io>
This commit is contained in:
committed by
Tony Sarajärvi
parent
0948f301a2
commit
154ae1ebef
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user