That is some serious magic with all the non-interactive TTY stuff,
@Martinski! I am going to need to pick this apart to understand how this all works.
So as a first test, I removed the
HOME and
SCREENDIR declarations from the
post-mount file, and left everything else the same. Then, in the script, I just added:
Code:
##-------------------------------------##
## Added by Martinski W. [2026-Apr-13] ##
##-------------------------------------##
[ "$HOME" != "/root" ] && export HOME="/root"
export SCREENDIR="${HOME}/.screen"
And believe it or not, it actually started up after a reboot! My second test script that did not have this addition did not start up. So that seems to prove it. I was wondering if it was possible to move this into the script itself if necessary, just to keep that
post-mount clean.