[pve-devel] [PATCH pve-container] redhat: use the fully qualified hostname

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Oct 19 10:02:02 CEST 2015


---
 src/PVE/LXC/Setup/Redhat.pm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/PVE/LXC/Setup/Redhat.pm b/src/PVE/LXC/Setup/Redhat.pm
index 095507a..813a87e 100644
--- a/src/PVE/LXC/Setup/Redhat.pm
+++ b/src/PVE/LXC/Setup/Redhat.pm
@@ -121,10 +121,9 @@ sub setup_init {
 sub set_hostname {
     my ($self, $conf) = @_;
 
+    # Redhat wants the fqdn in /etc/sysconfig/network's HOSTNAME
     my $hostname = $conf->{hostname} || 'localhost';
 
-    $hostname =~ s/\..*$//;
-
     my $hostname_fn = "/etc/hostname";
     my $sysconfig_network = "/etc/sysconfig/network";
 
-- 
2.1.4





More information about the pve-devel mailing list