[pve-devel] [PATCH container 1/2] Alpine: fixup securetty
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon May 2 15:26:50 CEST 2016
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 at proxmox.com>
---
src/PVE/LXC/Setup/Alpine.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/PVE/LXC/Setup/Alpine.pm b/src/PVE/LXC/Setup/Alpine.pm
index 1ba3b70..e7655bc 100644
--- a/src/PVE/LXC/Setup/Alpine.pm
+++ b/src/PVE/LXC/Setup/Alpine.pm
@@ -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 {
--
2.1.4
More information about the pve-devel
mailing list