Distrobox with custom HOME directory

I've run into an issue with distrobox on bazzite not allowing custom home directories, apparently due to /run/host not existing.

[giacomo@crunch] ~  
❯❯ distrobox create -i ghcr.io/ublue-os/fedora-toolbox -n fedora-toolbox -H /var/home/giacomo/distrobox/fedora-toolbox
Creating 'fedora-toolbox' using image ghcr.io/ublue-os/fedora-toolbox     [ OK ]
Distrobox 'fedora-toolbox' successfully created.
To enter, run:

distrobox enter fedora-toolbox


[giacomo@crunch] ~  
❯❯ distrobox enter fedora-toolbox
Starting container...                        [ OK ]
Installing basic packages...                 [ OK ]
Setting up devpts mounts...                  [ OK ]
Setting up read-only mounts...               [ OK ]
Setting up read-write mounts...              [ OK ]
Setting up host's sockets integration...     [ OK ]
Integrating host's themes, icons, fonts...     [ OK ]
Setting up distrobox profile...              [ OK ]
Setting up sudo...                           [ OK ]
Setting up kerberos integration...           [ OK ]
Setting up user's group list...              [ OK ]
Setting up existing user...                  [ OK ]
Ensuring user's access...                    [ OK ]
Setting up skel...                           [ OK ]

Container Setup Complete!
Error: crun: chdir to `/run/host/home/giacomo`: No such file or directory: OCI runtime attempted to invoke a command that was not found

[giacomo@crunch] ~  
❯❯ ls /run/host                                                                                                                                                                                                                       ⏎
"/run/host": No such file or directory (os error 2)


I have not run into the issue when doing the same on bluefin, though its been a while since I started running bluefin and I'm not sure if there was some additional configuration/setup performed for distrobox to work correctly.

Has anyone seen this issue or know where I'm going wrong?
Solution
well, i'm not sure how that it happened, but my $HOME was set to /home/giacomo instead of /var/home/giacomo which was apparently causing all the trouble. I updated the passwd file to use the /var/home directory, rebooted, re-created the distrobox containers and everything worked fine.
Was this page helpful?