summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2021-02-13 19:54:08 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2021-02-13 19:54:08 +0000
commitfa257126a5d6c83b94b059a90b5b838e473a47c9 (patch)
treed9ae3591a5c3666da9fbd048368590cabc62ea25 /config
parentcefa99725b234fe805d3cc339a190b4dfb74a325 (diff)
downloaddraklive-config-fa257126a5d6c83b94b059a90b5b838e473a47c9.tar
draklive-config-fa257126a5d6c83b94b059a90b5b838e473a47c9.tar.gz
draklive-config-fa257126a5d6c83b94b059a90b5b838e473a47c9.tar.bz2
draklive-config-fa257126a5d6c83b94b059a90b5b838e473a47c9.tar.xz
draklive-config-fa257126a5d6c83b94b059a90b5b838e473a47c9.zip
Configure NetworkManager to not use reverse DNS to get a hostname.
For most users that will likely fail, but it returns a default name of linux.local. Let's avoid unnecessary hostname changes, even though we now have a workaround for mga#28280.
Diffstat (limited to 'config')
-rw-r--r--config/build.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/build.cfg b/config/build.cfg
index 3278976..a9370f5 100644
--- a/config/build.cfg
+++ b/config/build.cfg
@@ -313,6 +313,9 @@ my $config = {
"systemctl -q enable NetworkManager.service",
"systemctl -q enable NetworkManager-wait-online.service",
"echo 'AUTOSTART=FALSE' > /home/live/.net_applet",
+ # Don't try to get a hostname by reverse DNS - it will most likely fail
+ # and set the hostname to linux.local.
+ "echo 'hostname-mode=dhcp' >> /etc/NetworkManager/NetworkManager.conf",
),
# Fix permissions for copied files.