From: Thomas Lamprecht Date: Tue, 1 Aug 2017 06:03:07 +0000 (+0200) Subject: templates/opensuse: getty.target.wants does not always exists X-Git-Tag: lxc-1.0.11~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22bfcb2a9f60dc0f2c1b871e0213f9a5e20f5aa8;p=thirdparty%2Flxc.git templates/opensuse: getty.target.wants does not always exists Signed-off-by: Thomas Lamprecht --- diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in index d7ae3afc5..36ede7902 100644 --- a/templates/lxc-opensuse.in +++ b/templates/lxc-opensuse.in @@ -93,8 +93,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