]>
git.proxmox.com Git - pve-container.git/blob - src/PVE/LXC/Setup/ArchLinux.pm
1 package PVE
::LXC
::Setup
::ArchLinux
;
6 use File
::Path
'make_path';
8 use PVE
::LXC
::Setup
::Base
;
10 use base
qw(PVE::LXC::Setup::Base);
13 my ($class, $conf, $rootdir) = @_;
15 # /etc/arch-release exists, but it's empty
16 #my $release = PVE::Tools::file_read_firstline("$rootdir/etc/arch-release");
17 #die "unable to read version info\n" if !defined($release);
19 my $self = { conf
=> $conf, rootdir
=> $rootdir, version
=> 0 };
21 $conf->{ostype
} = "archlinux";
23 return bless $self, $class;
27 my ($self, $conf) = @_;
29 # edit /etc/securetty (enable login on console)
30 $self->setup_securetty($conf);
32 $self->remove_lxc_name_from_etc_hosts();
36 my ($self, $conf) = @_;
38 $self->setup_systemd_preset({
39 # ArchLinux doesn't come with any particular predefined and enabled
40 # networking, so it probably makes sense to do the equivalent of
41 # 'systemctl enable systemd-networkd', since that's what we're configuring
43 'systemd-networkd.service' => 1
46 $self->setup_container_getty_service($conf);
50 my ($self, $conf) = @_;
52 $self->setup_systemd_networkd($conf);