From 44dc9ec7001fe4b44174c6f02d39327c4668e863 Mon Sep 17 00:00:00 2001 From: Robin Lee Date: Tue, 4 Jun 2019 13:54:35 +0800 Subject: [PATCH] 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. --- fedora-live-base.ks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedora-live-base.ks b/fedora-live-base.ks index 59ce17d..243e83e 100644 --- a/fedora-live-base.ks +++ b/fedora-live-base.ks @@ -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