]> git.proxmox.com Git - pve-container.git/blob - src/PVE/LXC/Setup/Fedora.pm
support Fedora 28
[pve-container.git] / src / PVE / LXC / Setup / Fedora.pm
1 package PVE::LXC::Setup::Fedora;
2
3 use strict;
4 use warnings;
5
6 use PVE::LXC::Setup::CentOS;
7
8 use base qw(PVE::LXC::Setup::CentOS);
9
10 sub new {
11 my ($class, $conf, $rootdir, $os_release) = @_;
12
13 my $version = $os_release->{VERSION_ID};
14 die "unsupported fedora release\n" if !($version >= 22 && $version <= 28);
15
16 my $self = { conf => $conf, rootdir => $rootdir, version => $version };
17
18 $conf->{ostype} = "fedora";
19
20 return bless $self, $class;
21 }
22
23 sub template_fixup {
24 my ($self, $conf) = @_;
25 $self->setup_securetty($conf);
26 $self->ct_unlink('/etc/systemd/system/getty@.service');
27 }
28
29 sub setup_init {
30 my ($self, $conf) = @_;
31 $self->setup_container_getty_service($conf);
32 }
33
34 1;