Persistent Storage with Custom Username

Greetings folks,

We have a requirement to spawn our JH user containers with the user’s username and UID. We’ve successfully implemented this using a pre-spawn hook by setting the NB_USER and NB_UID environment variables. The trouble we’re running into is that no matter what we seem to do, the user’s persistent storage still gets mounted at /home/jovyan rather than /home/(username). I’ve hunted around for quite some time for a solution and the only suggestion (from 3 years ago) was to somehow engineer a symlink from /home/jovyan somewhere in the spawn process (which I’ll still need to figure out how to do), but I’m wondering if there’s a more straightforward way to accomplish this.

Thanks!