Branch: refs/heads/stable-2.1
  Home:   https://github.com/lxc/lxc
  Commit: 085efe8f23a9dd4f066b98ca83dfce8dc8ae8af8
      https://github.com/lxc/lxc/commit/085efe8f23a9dd4f066b98ca83dfce8dc8ae8af8
  Author: Alf Gaida <[email protected]>
  Date:   2017-10-06 (Fri, 06 Oct 2017)

  Changed paths:
    M templates/lxc-debian.in

  Log Message:
  -----------
  Don't force getty@ configuration

```
    # this only works if we have [email protected] to manipulate
    if [ -f "${rootfs}/lib/systemd/system/[email protected]" ]; then
       sed -e 's/^ConditionPathExists=/# ConditionPathExists=/' \
     -e 's/After=dev-%i.device/After=/' \
     < "${rootfs}/lib/systemd/system/[email protected]" \
     > "${rootfs}/etc/systemd/system/[email protected]"
    fi
```
we have only /dev/tty in a container - so this little cutie will spam the log 
all 10s with the following:

```
Jul 28 22:33:00 mariadb systemd[1]: [email protected]: Service has no hold-off 
time, scheduling restart.
Jul 28 22:33:00 mariadb systemd[1]: [email protected]: Service has no hold-off 
time, scheduling restart.
Jul 28 22:33:00 mariadb systemd[1]: [email protected]: Service has no hold-off 
time, scheduling restart.
Jul 28 22:33:00 mariadb systemd[1]: [email protected]: Service has no hold-off 
time, scheduling restart.
Jul 28 22:33:00 mariadb systemd[1]: Stopped Getty on tty2.
Jul 28 22:33:00 mariadb systemd[1]: [email protected]: Failed to set 
invocation ID on control group 
/system.slice/system-getty.slice/[email protected], ignoring: Operation not 
permitted
Jul 28 22:33:00 mariadb systemd[1]: Started Getty on tty2.
Jul 28 22:33:00 mariadb systemd[1]: Stopped Getty on tty1.
Jul 28 22:33:00 mariadb systemd[1]: [email protected]: Failed to set 
invocation ID on control group 
/system.slice/system-getty.slice/[email protected], ignoring: Operation not 
permitted
Jul 28 22:33:00 mariadb systemd[1]: Started Getty on tty1.
Jul 28 22:33:00 mariadb systemd[1]: Stopped Getty on tty3.
Jul 28 22:33:00 mariadb systemd[1]: [email protected]: Failed to set 
invocation ID on control group 
/system.slice/system-getty.slice/[email protected], ignoring: Operation not 
permitted
Jul 28 22:33:00 mariadb systemd[1]: Started Getty on tty3.
Jul 28 22:33:00 mariadb systemd[1]: Stopped Getty on tty4.
Jul 28 22:33:00 mariadb systemd[1]: [email protected]: Failed to set 
invocation ID on control group 
/system.slice/system-getty.slice/[email protected], ignoring: Operation not 
permitted
Jul 28 22:33:00 mariadb systemd[1]: Started Getty on tty4.
Jul 28 22:33:00 mariadb agetty[242]: /dev/tty1: cannot open as standard input: 
No such file or directory
Jul 28 22:33:00 mariadb agetty[241]: /dev/tty2: cannot open as standard input: 
No such file or directory
Jul 28 22:33:00 mariadb agetty[244]: /dev/tty4: cannot open as standard input: 
No such file or directory
Jul 28 22:33:00 mariadb agetty[243]: /dev/tty3: cannot open as standard input: 
No such file or directory
Jul 28 22:33:10 mariadb systemd[1]: [email protected]: Service has no hold-off 
time, scheduling restart.
Jul 28 22:33:10 mariadb systemd[1]: [email protected]: Service has no hold-off 
time, scheduling restart.
Jul 28 22:33:10 mariadb systemd[1]: [email protected]: Service has no hold-off 
time, scheduling restart.
Jul 28 22:33:10 mariadb systemd[1]: [email protected]: Service has no hold-off 
time, scheduling restart.
Jul 28 22:33:10 mariadb systemd[1]: Stopped Getty on tty3.
Jul 28 22:33:10 mariadb systemd[1]: [email protected]: Failed to set 
invocation ID on control group 
/system.slice/system-getty.slice/[email protected], ignoring: Operation not 
permitted
Jul 28 22:33:10 mariadb systemd[1]: Started Getty on tty3.
Jul 28 22:33:10 mariadb systemd[1]: Stopped Getty on tty1.
Jul 28 22:33:10 mariadb systemd[1]: [email protected]: Failed to set 
invocation ID on control group 
/system.slice/system-getty.slice/[email protected], ignoring: Operation not 
permitted
Jul 28 22:33:10 mariadb systemd[1]: Started Getty on tty1.
Jul 28 22:33:10 mariadb systemd[1]: Stopped Getty on tty2.
Jul 28 22:33:10 mariadb systemd[1]: [email protected]: Failed to set 
invocation ID on control group 
/system.slice/system-getty.slice/[email protected], ignoring: Operation not 
permitted
Jul 28 22:33:10 mariadb systemd[1]: Started Getty on tty2.
Jul 28 22:33:10 mariadb systemd[1]: Stopped Getty on tty4.
Jul 28 22:33:10 mariadb systemd[1]: [email protected]: Failed to set 
invocation ID on control group 
/system.slice/system-getty.slice/[email protected], ignoring: Operation not 
permitted
Jul 28 22:33:10 mariadb systemd[1]: Started Getty on tty4.
Jul 28 22:33:10 mariadb agetty[245]: /dev/tty3: cannot open as standard input: 
No such file or directory
Jul 28 22:33:10 mariadb agetty[247]: /dev/tty2: cannot open as standard input: 
No such file or directory
Jul 28 22:33:10 mariadb agetty[246]: /dev/tty1: cannot open as standard input: 
No such file or directory
Jul 28 22:33:10 mariadb agetty[248]: /dev/tty4: cannot open as standard input: 
No such file or directory
```
if more reasons are whished i could attach the logs from 10 containers after 
one month runtime. (approx 30G)

Signed-off-by: Alf Gaida <[email protected]>


_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to