toolbox: toolbox enter emits Error: terminfo entry not found for foot

Describe the bug

toolbox enter emits terminfo error. terminfo built into toolbox does not contain foot

Inside toolbox:

    ⬢[watson@toolbox share]$ ls terminfo/   
    a/ A/ b/ c/ d/ e/ E/ g/ h/ j/ k/ l/ m/ n/ p/ r/ s/ t/ v/ w/ x/ 
    ⬢[watson@toolbox share]$ exit         
    logout

Outside toolbox (on host):

    [watson@fedora share]$ ls terminfo/
    a  A  b  c  d  e  E  f  g  h  j  k  l  m  n  p  r  s  t  v  w  x

Note: the appearance of the directory f where foot is kept on host but does not appear inside toolbox

See last line in debug output below:

    [watson@fedora ~]$ toolbox enter --log-level debug
    DEBU Running as real user ID 1000                 
    DEBU Resolved absolute path to the executable as /usr/bin/toolbox 
    DEBU Running on a cgroups v2 host                 
    DEBU Checking if /etc/subgid and /etc/subuid have entries for user watson 
    DEBU Validating sub-ID file /etc/subuid           
    DEBU Validating sub-ID file /etc/subgid           
    DEBU TOOLBOX_PATH is /usr/bin/toolbox             
    DEBU Migrating to newer Podman                    
    DEBU Toolbox config directory is /home/watson/.config/toolbox 
    DEBU Current Podman version is 4.4.1              
    DEBU Creating runtime directory /run/user/1000/toolbox 
    DEBU Old Podman version is 4.4.1                  
    DEBU Migration not needed: Podman version 4.4.1 is unchanged 
    DEBU Setting up configuration                     
    DEBU Setting up configuration: file /home/watson/.config/containers/toolbox.conf not found 
    DEBU Resolving image name                         
    DEBU Distribution (CLI): ''                       
    DEBU Image (CLI): ''                              
    DEBU Release (CLI): ''                            
    DEBU Resolved image name                          
    DEBU Image: 'fedora-toolbox:38'                   
    DEBU Release: '38'                                
    DEBU Resolving container name                     
    DEBU Container: ''                                
    DEBU Image: 'fedora-toolbox:38'                   
    DEBU Release: '38'                                
    DEBU Resolved container name                      
    DEBU Container: 'fedora-toolbox-38'               
    DEBU Resolving image name                         
    DEBU Distribution (CLI): ''                       
    DEBU Image (CLI): ''                              
    DEBU Release (CLI): ''                            
    DEBU Resolved image name                          
    DEBU Image: 'fedora-toolbox:38'                   
    DEBU Release: '38'                                
    DEBU Resolving container name                     
    DEBU Container: ''                                
    DEBU Image: 'fedora-toolbox:38'                   
    DEBU Release: '38'                                
    DEBU Resolved container name                      
    DEBU Container: 'fedora-toolbox-38'               
    DEBU Checking if container fedora-toolbox-38 exists 
    DEBU Inspecting mounts of container fedora-toolbox-38 
    DEBU Starting container fedora-toolbox-38         
    DEBU Inspecting entry point of container fedora-toolbox-38 
    DEBU Entry point PID is a float64                 
    DEBU Entry point of container fedora-toolbox-38 is toolbox (PID=5305) 
    DEBU Waiting for container fedora-toolbox-38 to finish initializing 
    DEBU Creating runtime directory /run/user/1000/toolbox 
    DEBU Checking if initialization stamp /run/user/1000/toolbox/container-initialized-5305 exists 
    DEBU Container fedora-toolbox-38 is initialized   
    DEBU Checking if 'podman exec' supports disabling the detach keys 
    DEBU 'podman exec' supports disabling the detach keys 
    DEBU Creating list of environment variables to forward 
    DEBU COLORTERM=truecolor                          
    DEBU DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus 
    DEBU DBUS_SYSTEM_BUS_ADDRESS is unset             
    DEBU DESKTOP_SESSION=sway                         
    DEBU DISPLAY=:1                                   
    DEBU LANG=en_US.UTF-8                             
    DEBU SHELL=/bin/bash                              
    DEBU SSH_AUTH_SOCK is unset                       
    DEBU TERM=foot                                    
    DEBU TOOLBOX_PATH=/usr/bin/toolbox                
    DEBU USER=watson                                  
    DEBU VTE_VERSION is unset                         
    DEBU WAYLAND_DISPLAY=wayland-1                    
    DEBU XAUTHORITY is unset                          
    DEBU XDG_CURRENT_DESKTOP=sway                     
    DEBU XDG_DATA_DIRS=/home/watson/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share 
    DEBU XDG_MENU_PREFIX is unset                     
    DEBU XDG_RUNTIME_DIR=/run/user/1000               
    DEBU XDG_SEAT=seat0                               
    DEBU XDG_SESSION_DESKTOP=sway                     
    DEBU XDG_SESSION_ID=2                             
    DEBU XDG_SESSION_TYPE=wayland                     
    DEBU XDG_VTNR=1                                   
    DEBU Running in container fedora-toolbox-38:      
    DEBU podman                                       
    DEBU --log-level                                  
    DEBU error                                        
    DEBU exec                                         
    DEBU --detach-keys                                
    DEBU                                              
    DEBU --interactive                                
    DEBU --tty                                        
    DEBU --user                                       
    DEBU watson                                       
    DEBU --workdir                                    
    DEBU /home/watson                                 
    DEBU --env=COLORTERM=truecolor                    
    DEBU --env=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus 
    DEBU --env=DESKTOP_SESSION=sway                   
    DEBU --env=DISPLAY=:1                             
    DEBU --env=LANG=en_US.UTF-8                       
    DEBU --env=SHELL=/bin/bash                        
    DEBU --env=TERM=foot                              
    DEBU --env=TOOLBOX_PATH=/usr/bin/toolbox          
    DEBU --env=USER=watson                            
    DEBU --env=WAYLAND_DISPLAY=wayland-1              
    DEBU --env=XDG_CURRENT_DESKTOP=sway               
    DEBU --env=XDG_DATA_DIRS=/home/watson/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share 
    DEBU --env=XDG_RUNTIME_DIR=/run/user/1000         
    DEBU --env=XDG_SEAT=seat0                         
    DEBU --env=XDG_SESSION_DESKTOP=sway               
    DEBU --env=XDG_SESSION_ID=2                       
    DEBU --env=XDG_SESSION_TYPE=wayland               
    DEBU --env=XDG_VTNR=1                             
    DEBU fedora-toolbox-38                            
    DEBU capsh                                        
    DEBU --caps=                                      
    DEBU --                                           
    DEBU -c                                           
    DEBU exec "$@"                                    
    DEBU /bin/sh                                      
    DEBU /bin/bash                                    
    DEBU -l                                           
    Error: terminfo entry not found for foot
    ⬢[watson@toolbox watson]$ 

Steps how to reproduce the behaviour

    1. boot fedora 38 sericea iso
    2. launch foot
    3. type: toolbox enter
    4. observe last line of output is: Error: terminfo entry not found for foot

Expected behaviour

    toolbox enter creates the default toolbox and exits quietly without error

Actual behaviour

    Error: terminfo entry not found for foot

Output of toolbox --version (v0.0.90+)

    toolbox version 0.0.99.3
    
    toolbox-0.0.99.3-10.fc38.x86_64
    
    Client:       Podman Engine
    Version:      4.4.1
    API Version:  4.4.1
    Go Version:   go1.20.1
    Built:        Fri Feb 17 05:26:16 2023
    OS/Arch:      linux/amd64
    
    podman-4.4.1-3.fc38.x86_64
    
    Linux fedora 6.2.0-63.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Feb 20 15:07:34 UTC 2023 x86_64 GNU/Linux

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 3
  • Comments: 18 (10 by maintainers)

Most upvoted comments

For the posterity: as mentioned above, the solution is to install the relevant terminfo package in the Toolbox container:

⬢[you@toolbox]~% sudo dnf install foot-terminfo

As an alternative, set Foot to use a well-known terminfo, by adding this line to your foot.ini:

term=xterm-256color