mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 15:36:18 -05:00
wrolpi-bootstrap.service applied the /media/wrolpi/config/postgresql bind-mounts over /var/lib/postgresql and /etc/postgresql at every boot, including on installed systems. The binds exist for live boots, where the root filesystem is an ephemeral overlay; on an installed system they put the cluster in the path of repair.sh's config chown (pg_filenode.map permission errors) and, once the user mounts an NTFS/exFAT primary drive over /media/wrolpi, point Postgres at a filesystem that cannot host a data directory at all — no clusters, connection refused, while the umbrella postgresql.service stays green. Installed systems now keep Postgres at the normal Debian paths on the root filesystem. A box that still has a stale bind active from an old boot gets a log note to reboot; on the first clean boot the existing pg_createcluster/initialize_api_db logic builds the root-disk cluster automatically and the database rebuilds from configs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| local | ||
| share/applications | ||