[pve-devel] [PATCH v2 container 2/2] setup: enable fedora 23 and 24
Wolfgang Bumiller
w.bumiller at proxmox.com
Wed Dec 7 14:10:35 CET 2016
---
Note that the currently allowed version 22 already suffers from the
same tty login issue as 23 and 24, so I see no reason not to enable
them already.
src/PVE/LXC/Setup/Fedora.pm | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/PVE/LXC/Setup/Fedora.pm b/src/PVE/LXC/Setup/Fedora.pm
index ff60b10..2e5922c 100644
--- a/src/PVE/LXC/Setup/Fedora.pm
+++ b/src/PVE/LXC/Setup/Fedora.pm
@@ -16,7 +16,7 @@ sub new {
my $version;
if ($release =~ m/release\s+(\d+(?:\.\d+)?)(\.\d+)?/) {
- if ($1 >= 22 && $1 < 23) {
+ if ($1 >= 22 && $1 < 25) {
$version = $1;
}
}
@@ -30,4 +30,17 @@ sub new {
return bless $self, $class;
}
+sub template_fixup {
+ my ($self, $conf) = @_;
+ $self->setup_securetty($conf);
+}
+
+sub setup_init {
+ my ($self, $conf) = @_;
+ my $version = $self->{version};
+ if ($version >= 23) {
+ $self->setup_container_getty_service($conf);
+ }
+}
+
1;
--
2.1.4
More information about the pve-devel
mailing list