FS#39963 - [lxc] archlinux template leaves lxc-console non-functional
Attached to Project:
Community Packages
Opened by Carl Saṃpūrṇa (crs) - Saturday, 19 April 2014, 15:28 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 30 May 2014, 12:58 GMT
Opened by Carl Saṃpūrṇa (crs) - Saturday, 19 April 2014, 15:28 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 30 May 2014, 12:58 GMT
|
Details
Description:
a container created with the lxc-archlinux template has getty disabled (except on the console) because getty@.service has ConditionPathExists=/dev/tty0, and the container doesn't have that device. lxc-console does connect to the container, but since getty isn't running no login is possible. Steps to reproduce: # lxc-create -n arch -t archlinux # lxc-start -d -n arch # lxc-console -n arch A suggested fix: add something like this to configure_arch() in lxc-archlinux: mkdir /etc/systemd/system/getty@.service.d cat <<EOC >/etc/systemd/system/getty@.service.d/lxc.conf [Unit] ConditionPathExists= ConditionPathExists=/dev/tty1 EOC |
This task depends upon
lxc-console -n name -t 0
?