From fa257126a5d6c83b94b059a90b5b838e473a47c9 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 13 Feb 2021 19:54:08 +0000 Subject: 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. --- config/build.cfg | 3 +++ 1 file changed, 3 insertions(+) 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. -- cgit v1.2.1