]>
git.proxmox.com Git - pve-container.git/blob - src/PVE/LXC/Setup/Devuan.pm
0f9e5f78fc809ec952836b43f3d602d601739f16
1 package PVE
::LXC
::Setup
::Devuan
;
6 use PVE
::Tools
qw($IPV6RE);
8 use PVE
::LXC
::Setup
::Debian
;
9 use base
qw(PVE::LXC::Setup::Debian);
12 my ($class, $conf, $rootdir) = @_;
14 my $version = PVE
::Tools
::file_read_firstline
("$rootdir/etc/devuan_version");
16 die "unable to read version info\n" if !defined($version);
18 die "unsupported Devuan version '$version'\n"
19 if $version !~ /jessie|ascii|beowulf/;
21 my $self = { conf
=> $conf, rootdir
=> $rootdir, version
=> $version };
23 $conf->{ostype
} = "devuan";
25 return bless $self, $class;
28 # the rest gets handled by the Debian plugin, which is compatible with older
29 # non-systemd Debian versions for now.