projects
/
pve-container.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
699ee9b
)
setup: more flexible setup_container_getty_service
author
Wolfgang Bumiller
<w.bumiller@proxmox.com>
Wed, 27 Jul 2016 09:05:51 +0000
(11:05 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Fri, 5 Aug 2016 08:39:47 +0000
(10:39 +0200)
src/PVE/LXC/Setup/Base.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/LXC/Setup/Base.pm
b/src/PVE/LXC/Setup/Base.pm
index 927f77987b7d0cfdd63db6491a0cc57302d52c19..32c14916d9d2ef587c1a6503b70708dd0656cc90 100644
(file)
--- 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@pts/%I@$ttyname@g) {
+ if ($raw =~ s@pts/%I
|lxc/tty%I
@$ttyname@g) {
$self->ct_file_set_contents($servicefile, $raw);
}
}