mirror of
git://github.com/lxc/lxc
synced 2025-08-31 08:09:38 +00:00
templates/opensuse: getty.target.wants does not always exists
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained 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
|
||||
|
Reference in New Issue
Block a user