-
Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
None
-
False
-
-
False
-
-
The logic for persisting user home directories is currently injected into an init-container with the following -
(echo "Checking for stow command" STOW_COMPLETE=/home/user/.stow_completed if command -v stow &> /dev/null; then if [ ! -f $STOW_COMPLETE ]; then echo "Running stow command" stow . -t /home/user/ -d /home/tooling/ --no-folding -v 2 > /home/user/.stow.log 2>&1 cp -n /home/tooling/.viminfo /home/user/.viminfo cp -n /home/tooling/.bashrc /home/user/.bashrc cp -n /home/tooling/.bash_profile /home/user/.bash_profile touch $STOW_COMPLETE else echo "Stow command already run. If you wish to re-run it, delete $STOW_COMPLETE from the persistent volume and restart the workspace." fi else echo "Stow command not found" fi) || true
In some cases, additional logic or different logic is needed if the enterprise is using a customized UDI.