]> git.proxmox.com Git - pve-container.git/commitdiff
setup: allow fedora 22-25
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 9 Dec 2016 08:54:24 +0000 (09:54 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 9 Dec 2016 09:07:29 +0000 (10:07 +0100)
This should allow vanilla lxc templates to work without the
double-console issue by removing their getty@.service
replacement. (Since we instead fixup
container-getty@.service)

src/PVE/LXC/Setup/Fedora.pm

index ff60b10f6b79e83cfd3022dcadda0084e08eca5c..70aab628227db91d28c2cf6d4f297ec5c0365b63 100644 (file)
@@ -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 < 26) {
            $version = $1;
        }
     }
@@ -30,4 +30,15 @@ sub new {
     return bless $self, $class;
 }
 
+sub template_fixup {
+    my ($self, $conf) = @_;
+    $self->setup_securetty($conf);
+    $self->ct_unlink('/etc/systemd/system/getty@.service');
+}
+
+sub setup_init {
+    my ($self, $conf) = @_;
+    $self->setup_container_getty_service($conf);
+}
+
 1;