toolbox/doc
Casey Jao c2e41553db Unbreak setting up /home as a symbolic link
The whole idea behind commit 66e982af72 was to set up $HOME and
/home to match the host. Therefore, it's pointless to check if /home
is a symbolic link or not inside the toolbox container. The state of
/home needs to be checked on the host, and then the toolbox container
adjusted accordingly.

One crucial difference is that the toolbox container is created before
its /home can be adjusted. Earlier, there was the user-specific
customized image, whose /home was adjusted first, and then the toolbox
container created from that. This boils down to the following
invocation happening before the symbolic link can be set up:
  podman create --volume "$HOME":$HOME":rslave --workdir "$HOME" ...

As a result, on host operating systems like Fedora 29 where /home is a
symbolic link with $HOME pointing inside it, Podman populates /home
with the user's sub-directory inside the toolbox container. This
prevents the subsequent 'rmdir $HOME' from working, and consequently
kills the container's entry point.

Compare that to Fedora 30 and newer where this problem doesn't occur
because /home is a symbolic link but $HOME points inside the target
/var/home directory.

This is why $HOME is canonicalized before bind mounting it into the
container and the container's working directory is reverted back to the
default (ie. /).

Fallout from 8b84b5e460

https://github.com/debarshiray/toolbox/issues/185
2019-06-17 23:28:34 +02:00
..
meson.build Drop the Buildah dependency and the user-specific customized image 2019-05-16 15:47:33 +02:00
toolbox-create.1.md Add short variants for various options in 'create' and 'enter' 2019-04-12 16:22:42 +02:00
toolbox-enter.1.md doc/toolbox-enter: Mention the 'initial setup' and fallback behaviour 2019-04-30 12:19:36 +02:00
toolbox-init-container.1.md Unbreak setting up /home as a symbolic link 2019-06-17 23:28:34 +02:00
toolbox-list.1.md Add manuals 2019-03-01 10:27:09 +01:00
toolbox-rm.1.md Add rm and rmi commands 2019-03-05 16:17:46 +01:00
toolbox-rmi.1.md doc/toolbox-rmi: Fix typo 2019-03-14 14:06:57 +01:00
toolbox-run.1.md doc/toolbox-run: Style fixes 2019-05-14 17:26:02 +02:00
toolbox.1.md Drop the Buildah dependency and the user-specific customized image 2019-05-16 15:47:33 +02:00