]> git.proxmox.com Git - pve-container.git/commitdiff
setup getty: ensure the getty.target is not masked
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 Jul 2019 10:07:40 +0000 (12:07 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 Jul 2019 12:32:28 +0000 (14:32 +0200)
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 <t.lamprecht@proxmox.com>
Acked-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/LXC/Setup/Base.pm

index 65b5466ab80ecd006b59e2f86360f919092ea1d4..72ac0f701aab680b27269c8e8ef01cb5213dafb7 100644 (file)
@@ -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 {