[pve-devel] [PATCH container 2/2] setup: enable fedora 23 and 24
Wolfgang Bumiller
w.bumiller at proxmox.com
Tue Dec 6 13:53:31 CET 2016
---
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..9d56475 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->{unprivileged});
+ }
+}
+
1;
--
2.1.4
More information about the pve-devel
mailing list