mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-07 13:41:32 +00:00
Merge pull request #1045 from thtanaka/console-login-ol72
Unable to login via console in OL7.2
This commit is contained in:
commit
56c80e0d4d
@ -145,6 +145,9 @@ EOF
|
||||
|
||||
# OL7 has systemd, no rc.sysinit
|
||||
if [ $container_release_major = "7" ]; then
|
||||
# with newer systemd (OL7.2), getty service include container-getty.service
|
||||
# let that be the one who manage the getty service instead
|
||||
if [ ! -f $container_rootfs/usr/lib/systemd/system/container-getty@.service ]; then
|
||||
# from mhw in the fedora template: We do need to disable the
|
||||
# "ConditionalPathExists=/dev/tty0" line or no gettys are started on
|
||||
# the ttys in the container. Lets do it in an override copy of the
|
||||
@ -160,6 +163,7 @@ EOF
|
||||
# We only want to spawn a getty on /dev/console in lxc, libvirt-lxc
|
||||
# symlinks /dev/console to /dev/tty1
|
||||
sed -i '/Before=getty.target/a ConditionVirtualization=lxc' $container_rootfs/usr/lib/systemd/system/console-getty.service
|
||||
fi
|
||||
|
||||
# disable some systemd services, set default boot, sigpwr target
|
||||
rm -f $container_rootfs/usr/lib/systemd/system/sysinit.target.wants/kmod-static-nodes.service
|
||||
|
Loading…
Reference in New Issue
Block a user