1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-12-23 19:53:10 +00:00

Make new hostname take effect immediately

There was race condition between hostname taking effect and lightdm setting up
Xorg service that X client would fail to find a proper xauth entry to connect
the X server.

hostnamectl will also rewrite /etc/hostname.
This commit is contained in:
Robin Lee 2019-06-04 13:54:35 +08:00
parent 02043d4f16
commit 44dc9ec700

View File

@ -224,7 +224,7 @@ touch /.liveimg-configured
# https://bugzilla.redhat.com/show_bug.cgi?id=679486
# the hostname must be something else than 'localhost'
# https://bugzilla.redhat.com/show_bug.cgi?id=1370222
echo "localhost-live" > /etc/hostname
hostnamectl set-hostname "localhost-live"
EOF