All user configured information should live in /data for two reasons:
If the user decides to attach an external USB hard drive for more space, its easier to just copy the /data directory than to try to find all of the user data stored all over the hard drive.
For backup purposes, simply doing a .tar.gz of the /data directory is easier than backing up all of the configurations and data from across the hard drive.
So, we need to go through and identify all of the config files, change the directories they live in, those they point to, and the systemd startup scripts to feed the new location to the executeable on startup.
Changing the systemd scripts will be tedious but not hard. pi-gen can already execute patches, see the stage-2/01-sys-tweaks/00-patches directory for examples. I also just pushed a new file example for dovecot.
All user configured information should live in
/data
for two reasons:/data
directory than to try to find all of the user data stored all over the hard drive..tar.gz
of the/data
directory is easier than backing up all of the configurations and data from across the hard drive.So, we need to go through and identify all of the config files, change the directories they live in, those they point to, and the systemd startup scripts to feed the new location to the executeable on startup.