]> git.proxmox.com Git - pve-container.git/commitdiff
fix #2655: don't forget to setup securetty for centos >= 7
authorOguz Bektas <o.bektas@proxmox.com>
Mon, 25 May 2020 12:32:13 +0000 (14:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 May 2020 09:02:31 +0000 (11:02 +0200)
in template_fixup we only call this method for version < 7, but greater
versions also need to allow lxc/tty[N] as secure.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
src/PVE/LXC/Setup/CentOS.pm

index 1e6894b2b6f3e730607c785eb7355b418ffcd192..3721ca76e703fe1563c093cb8c9735f2fa82ff7a 100644 (file)
@@ -109,10 +109,9 @@ sub template_fixup {
        my $data = $self->ct_file_get_contents($filename);
        $data =~ s!^(/sbin/start_udev.*)$!#$1!gm;
        $self->ct_file_set_contents($filename, $data);
-       
-       # edit /etc/securetty (enable login on console)
-       $self->setup_securetty($conf);
     }
+    # edit /etc/securetty (enable login on console)
+    $self->setup_securetty($conf);
 }
 
 sub setup_init {