Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Closed by  Sergej Pupykin (sergej)
Friday, 30 May 2014, 12:58 GMT
Reason for closing:  Upstream
Comment by Carl Saṃpūrṇa (crs) - Saturday, 19 April 2014, 15:42 GMT
or, maybe this is better filed upstream?
Comment by Sergej Pupykin (sergej) - Monday, 21 April 2014, 10:37 GMT
did you try
lxc-console -n name -t 0
?
Comment by Carl Saṃpūrṇa (crs) - Monday, 21 April 2014, 18:59 GMT
yes, 'lxc-console -n name -t 0' works, but it connects to /dev/console. It seems like a bug to me that /dev/tty1 exists, but that getty doesn't run on it.
Comment by Sergej Pupykin (sergej) - Friday, 30 May 2014, 11:12 GMT
please report upstream

Loading...