[pve-devel] [PATCH container 1/2] setup: more flexible setup_container_getty_service
Wolfgang Bumiller
w.bumiller at proxmox.com
Wed Jul 27 11:05:51 CEST 2016
---
Allows moving away from an lxc/ subdir configuration (needed by the
second patch (otherwise arch users have to wait for a systemd package
upgrade for the change to take effect.)
src/PVE/LXC/Setup/Base.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/LXC/Setup/Base.pm b/src/PVE/LXC/Setup/Base.pm
index 927f779..32c1491 100644
--- a/src/PVE/LXC/Setup/Base.pm
+++ b/src/PVE/LXC/Setup/Base.pm
@@ -205,7 +205,7 @@ sub setup_container_getty_service {
my $servicefile = "$systemd_dir_rel/container-getty\@.service";
my $raw = $self->ct_file_get_contents($servicefile);
my $ttyname = ($nosubdir ? '' : 'lxc/') . 'tty%I';
- if ($raw =~ s at pts/%I@$ttyname at g) {
+ if ($raw =~ s at pts/%I|lxc/tty%I@$ttyname at g) {
$self->ct_file_set_contents($servicefile, $raw);
}
}
--
2.1.4
More information about the pve-devel
mailing list