]> git.proxmox.com Git - pve-container.git/blobdiff - src/PVE/LXC/Setup/Fedora.pm
fix #4515: template setup: remove bogus LXC_NAME line from /etc/hosts
[pve-container.git] / src / PVE / LXC / Setup / Fedora.pm
index 17ae7da36a259b9f77cecfb1172879bdbf82bd35..6e54a9eef12f2e7ea99ab0ed3779e0305c48c95c 100644 (file)
@@ -24,6 +24,8 @@ sub template_fixup {
     my ($self, $conf) = @_;
     $self->setup_securetty($conf);
     $self->ct_unlink('/etc/systemd/system/getty@.service');
+
+    $self->remove_lxc_name_from_etc_hosts();
 }
 
 sub setup_init {