mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 15:36:18 -05:00
wrolpi-portable-bootstrap.service runs at every boot (idempotent throughout) and owns the persistence partition lifecycle: - First boot: creates an ext4 partition labeled 'persistence' in free space at the end of the boot drive (sfdisk --append --no-reread --force because the live medium is mounted from the same disk), bind-mounts source dirs over /var/lib/postgresql, /etc/postgresql, and /media/wrolpi, creates a fresh Postgres cluster, and runs initialize_api_db.sh. - Subsequent boots: live-boot's persistence machinery applies the bind mounts in initramfs (kernel cmdline now includes 'persistence persistence-label=persistence persistence-media=removable'); the script mostly no-ops apart from regenerating the leaf TLS cert. After bootstrap completes the script enables and starts wrolpi-api, wrolpi-app, and wrolpi-kiwix — these stay disabled in the chroot hook so they cannot start until the DB and configs are ready (avoiding the "half-finished state with empty configs" failure mode). Also adds parted, gdisk, dosfstools, and exfatprogs to the package list so the live system can fully diagnose / repair / partition without internet. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| config | ||
| files | ||
| build.sh | ||