westwork-org / westwork-gen

Tool used to create Raspbian images for Westwork. Based on pi-gen.
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Move all information to /data #3

Open rschulman opened 7 years ago

rschulman commented 7 years ago

All user configured information should live in /data for two reasons:

  1. 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.
  2. 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.

rschulman commented 7 years ago

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.