diff --git a/src/modules/users/SetHostNameJob.cpp b/src/modules/users/SetHostNameJob.cpp index 38cc91f63..1f7a15b64 100644 --- a/src/modules/users/SetHostNameJob.cpp +++ b/src/modules/users/SetHostNameJob.cpp @@ -60,14 +60,14 @@ writeFileEtcHosts( const QString& hostname ) { // The actual hostname gets substituted in at %1 const QString standard_hosts = QStringLiteral( R"(# Standard host addresses - 127.0.0.1 localhost - ::1 localhost ip6-localhost ip6-loopback - ff02::1 ip6-allnodes - ff02::2 ip6-allrouters - )" ); +127.0.0.1 localhost +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +)" ); const QString this_host = QStringLiteral( R"(# This host address - 127.0.1.1 %1 - )" ); +127.0.1.1 %1 +)" ); const QString etc_hosts = standard_hosts + ( hostname.isEmpty() ? QString() : this_host.arg( hostname ) ); return Calamares::System::instance()->createTargetFile(