]> git.proxmox.com Git - pve-container.git/commitdiff
suse: move setup_securetty to template_fixup()
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 18 Feb 2016 09:54:52 +0000 (10:54 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 18 Feb 2016 10:46:18 +0000 (11:46 +0100)
src/PVE/LXC/Setup/SUSE.pm

index b7814fa10a6def40c2a06acb9959ea9012f96ec4..b1be09a23d29f239b21ca7a6859412edf0ac985f 100644 (file)
@@ -36,13 +36,14 @@ sub new {
 }
 
 sub template_fixup {
-    # Nothing to do
+    my ($self, $conf) = @_;
+
+    $self->setup_securetty($conf, qw(lxc/console lxc/tty1 lxc/tty2 lxc/tty3 lxc/tty4));
 }
 
 sub setup_init {
     my ($self, $conf) = @_;
 
-    $self->setup_securetty($conf, qw(lxc/console lxc/tty1 lxc/tty2 lxc/tty3 lxc/tty4));
     if ($self->{version} >= 13.2) {
        $self->setup_container_getty_service();
     }