I have an HA Green unit and a user set up to run bash.
EVERY time the system upgrades, it resets the passed file entry for my user back to /home/{user} and sh, and then ERASES everything in the home directory!!!
Generally speaking, this how docker containers work: every time you update the image (i.e. do an HA upgrade), every modification done to the image file system is reset to what is in the new image.
PS. This is about the filesystem in HA itself (using the SSH/Terminal addon), which I assume this is what we’re talking about.
If you directly to HAOS itself (SSH 22222) the filesystem just get reset by the HAOS update, I guess.