]> git.proxmox.com Git - pve-container.git/commitdiff
Alpine: fixup securetty
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 2 May 2016 13:26:50 +0000 (15:26 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 3 May 2016 06:03:57 +0000 (08:03 +0200)
It seems busybox has some problems with links thus the tty dev
detection doesn't work, as workaround add also the lxc/tty[1-4] and
lxc/console devs to securetty to allow root login over the console.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Setup/Alpine.pm

index 1ba3b702c6b0ca9f4a9d3d897ae5877c7e1c66b6..e7655bc440cba467a3d4679755ac976da1910f81 100644 (file)
@@ -38,6 +38,8 @@ sub template_fixup {
                       '/etc/runlevels/shutdown/killprocs');
     $self->ct_symlink('/etc/init.d/savecache',
                       '/etc/runlevels/shutdown/savecache');
+
+    $self->setup_securetty($conf, qw(lxc/console lxc/tty1 lxc/tty2 lxc/tty3 lxc/tty4));
 }
 
 sub setup_init {