From: Thomas Lamprecht Date: Wed, 17 Jul 2019 10:07:40 +0000 (+0200) Subject: setup getty: ensure the getty.target is not masked X-Git-Url: https://git.proxmox.com/?p=pve-container.git;a=commitdiff_plain;h=570798fadd62752e5f370fec908c1308394000a2;ds=sidebyside setup getty: ensure the getty.target is not masked some distro templates have this masked by default, it makes sense to always ensure that it can work, a CT admin can still prevent this by using the .pve-ignore.$file mechanism. Signed-off-by: Thomas Lamprecht Acked-by: Fabian Grünbichler --- diff --git a/src/PVE/LXC/Setup/Base.pm b/src/PVE/LXC/Setup/Base.pm index 65b5466..72ac0f7 100644 --- a/src/PVE/LXC/Setup/Base.pm +++ b/src/PVE/LXC/Setup/Base.pm @@ -228,6 +228,9 @@ sub setup_container_getty_service { $self->ct_symlink($template_path, "$getty_target_fn/$tty_service"); } } + + # ensure getty.target is not masked + $self->ct_unlink("/etc/systemd/system/getty.target"); } sub setup_systemd_networkd {