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)
my $version;
if ($release =~ m/release\s+(\d+(?:\.\d+)?)(\.\d+)?/) {
- if ($1 >= 22 && $1 < 23) {
+ if ($1 >= 22 && $1 < 26) {
$version = $1;
}
}
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;