From d4cf2ad3ec958746d9716ca94c84dbb6267e34f2 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 1 Aug 2017 08:03:07 +0200 Subject: [PATCH] templates/opensuse: getty.target.wants does not always exists Signed-off-by: Thomas Lamprecht --- templates/lxc-opensuse.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in index 9f3a827be..2cb6be6db 100644 --- a/templates/lxc-opensuse.in +++ b/templates/lxc-opensuse.in @@ -102,8 +102,10 @@ EOF ln -s /dev/null $rootfs/etc/systemd/system/proc-sys-fs-binfmt_misc.automount ln -s /dev/null $rootfs/etc/systemd/system/console-shell.service ln -s /dev/null $rootfs/etc/systemd/system/systemd-vconsole-setup.service + # enable getty and console services sed -e 's/ConditionPathExists=.*//' $rootfs/usr/lib/systemd/system/getty@.service > $rootfs/etc/systemd/system/getty@.service ln -s getty@.service $rootfs/etc/systemd/system/getty@tty1.service + mkdir -p $rootfs/etc/systemd/system/getty.target.wants/ ln -s ../getty@.service $rootfs/etc/systemd/system/getty.target.wants/getty@console.service ln -s -f ../getty@.service $rootfs/etc/systemd/system/getty.target.wants/getty@tty1.service ln -s ../getty@.service $rootfs/etc/systemd/system/getty.target.wants/getty@tty2.service -- 2.47.3