BetterFrame/deploy/systemd/betterframe-expand-data.service
Mitchell R 0c74e26e42
feat: expand BF_DATA on first boot + wire update progress banner + partition reporting
- Add betterframe-expand-data systemd service: growpart + resize2fs on
  BF_DATA (last partition) so it fills the full SD card on first boot.
  Solves the "No space left on device" issue with OS update downloads.
- Change OS update staging dir from /var/tmp/betterframe to
  /var/lib/betterframe/tmp (on BF_DATA partition, not rootfs).
- Wire firmware and OS update progress callbacks into the GTK overlay
  banner — shows "OS Update v1.2.3: Downloading — 45%" etc.
- Add per-partition disk reporting in heartbeat (/, /boot/firmware,
  /var/lib/betterframe) with total/used/free/percent.
- Display partition table on kiosk detail page in admin UI.
- PG + SQLite migrations for partitions_json column on kiosks.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-26 08:09:20 +02:00

14 lines
360 B
Desktop File

[Unit]
Description=Expand BF_DATA partition to fill SD card
DefaultDependencies=no
After=local-fs.target
Before=betterframe-kiosk.service betterframe-firstboot.service
ConditionPathExists=!/var/lib/betterframe/.data-expanded
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/betterframe-expand-data.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target