Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-10720

[LXD] Improve /dev/console integration

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None
    • LXD Users

      Playing and analyzing LXD behavior I found two things:

      1) It's better setup `/etc/inittab` having only the use of /dev/console tty because on unprivileged container /dev/tty* are not available.

      # TERMINALS
      x1:12345:respawn:/sbin/agetty 38400 console linux
      #c1:12345:respawn:/sbin/agetty 38400 tty1 linux
      #c2:2345:respawn:/sbin/agetty 38400 tty2 linux
      #c3:2345:respawn:/sbin/agetty 38400 tty3 linux
      #c4:2345:respawn:/sbin/agetty 38400 tty4 linux
      #c5:2345:respawn:/sbin/agetty 38400 tty5 linux
      #c6:2345:respawn:/sbin/agetty 38400 tty6 linux
       

      This is not a real issue but only a setup specific for LXD.

       

      2) On login through the LXC Console with:

      This is t5.mottainai.local (Linux x86_64 5.15.76-macaroni) 06:23:38t5 login: root
      Password:  >>> Release:                       stage3-generic_64-1.4-release-std-2022-06-04
       >>> Version:                       2022-06-04
       >>> Created by:                    Daniel Robbins <drobbins@funtoo.org> 
      
      >>> Send suggestions, improvements, bug reports relating to...
      
      >>> Funtoo Linux:        Funtoo Linux (http://www.funtoo.org)
      
      NOTE: This message can be removed by deleting /etc/motd.
      
      -bash: cannot set terminal process group (757): Inappropriate ioctl for device
      -bash: no job control in this shell 

      This bash error seems related to a patch needed on glibc.

      See https://github.com/lxc/lxc/issues/1804

       

      All Canonical containers of Funtoo and all Funtoo/Macaroni images over Macaroni Simplestreams server are affected by this issue.

       

      It's not critical because the console it works. But it annoying message.

      To reproduce it just set /dev/console in inittab and then run:

      lxc start <container-name> --console
      

      and then login in the terminal.

       

       

            geaaru geaaru
            geaaru geaaru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: