[pve-devel] [PATCH container 2/2] suse: move setup_securetty to template_fixup()

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Feb 18 10:54:52 CET 2016


---
To be consistent with the other distribution setups.

 src/PVE/LXC/Setup/SUSE.pm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/PVE/LXC/Setup/SUSE.pm b/src/PVE/LXC/Setup/SUSE.pm
index b7814fa..b1be09a 100644
--- a/src/PVE/LXC/Setup/SUSE.pm
+++ b/src/PVE/LXC/Setup/SUSE.pm
@@ -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();
     }
-- 
2.1.4





More information about the pve-devel mailing list