]> git.proxmox.com Git - pve-container.git/commitdiff
redhat: use the fully qualified hostname
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 19 Oct 2015 08:02:02 +0000 (10:02 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 19 Oct 2015 08:50:58 +0000 (10:50 +0200)
debian/changelog
src/PVE/LXC/Setup/Redhat.pm

index 2e834c2e1dacd813ed03b81377240a5626f0cf22..b696c1f6c4df7499b420f263f611ee1c60c3955e 100644 (file)
@@ -4,6 +4,8 @@ pve-container (1.0-12) unstable; urgency=medium
 
   * network setup: deal with gateways outside the subnet
 
+  * redhat: use the fully qualified hostname
+
  -- Proxmox Support Team <support@proxmox.com>  Mon, 19 Oct 2015 08:52:02 +0200
 
 pve-container (1.0-11) unstable; urgency=medium
index 095507a553f67fd407e5d590ac06f39bacfafe17..813a87e66f12125fad97ca99a032a0033ca7be53 100644 (file)
@@ -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";