mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 04:16:24 -05:00
The Calamares desktop-icon path doesn't launch reliably in our wrolpi
auto-login session. We chased two stacks of fixes — gvfs + tumbler
for xfdesktop's launch path, lxpolkit for pkexec's GUI auth agent,
metadata::trusted + xfce-exe-checksum for XFCE's untrusted-launcher
check — and the icon still does nothing when double-clicked on a fresh
boot. The upstream Debian Installer reached via GRUB has none of these
problems and is the better-tested path for installing onto disk.
build.sh adds:
--debian-installer live live-installer copies the squashfs
onto the target instead of doing a
network re-install
--debian-installer-gui true graphical d-i frontend available
GRUB will now show Live / Install / Graphical Install / Advanced
entries; the user picks at boot.
Drops:
- calamares + calamares-settings-debian from the package list
- /etc/calamares/branding/wrolpi/ + settings.conf + modules
- The install-wrolpi.desktop launcher + the trust autostart we shipped
to try to make it click-able
Net ISO size will drop ~50-100 MB (Calamares + Qt5).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
69 lines
2.5 KiB
Markdown
69 lines
2.5 KiB
Markdown
# Debian Live Config
|
|
|
|
Build a bootable amd64 ISO that boots into a full WROLPi system on any x86
|
|
PC. Users can run WROLPi directly off the USB (a persistence partition is
|
|
created on the first boot so the database and media directory survive
|
|
reboots) or install to disk via the Calamares launcher on the desktop.
|
|
|
|
The chroot-phase build is identical for both modes; the resulting squashfs
|
|
is what runs in live mode AND what Calamares copies onto the target disk.
|
|
|
|
See https://live-team.pages.debian.net/live-manual/html/live-manual/index.en.html
|
|
|
|
## Build
|
|
|
|
```
|
|
sudo ./build.sh # build from 'release' branch
|
|
sudo ./build.sh -b master # build from a specific branch
|
|
```
|
|
|
|
Requires Debian / Ubuntu with `live-build` installed. The resulting ISO is
|
|
written to this directory as `WROLPi-v${VERSION}-amd64.iso`.
|
|
|
|
Flash with Etcher, Rufus, Raspberry Pi Imager, or:
|
|
|
|
```
|
|
sudo dd if=WROLPi-v${VERSION}-amd64.iso of=/dev/sdX bs=4M status=progress conv=fsync
|
|
```
|
|
|
|
## Layout on disk
|
|
|
|
The drive carries everything WROLPi needs. Postgres data lives alongside
|
|
the user's library so a drive moved between hosts keeps its full state:
|
|
|
|
```
|
|
/media/wrolpi/
|
|
videos/ ← user-facing media
|
|
archives/
|
|
zims/
|
|
map/
|
|
tags/
|
|
config/
|
|
wrolpi.yaml
|
|
controller.yaml
|
|
fstab.yaml
|
|
ssl/
|
|
postgresql/
|
|
data/ ← bind-mounted to /var/lib/postgresql
|
|
config/ ← bind-mounted to /etc/postgresql
|
|
```
|
|
|
|
## Implementation status
|
|
|
|
- [x] **Phase 1 — merged live + chroot config**: Single `debian-live-config/`
|
|
produces a Debian Live ISO with the full WROLPi stack, XFCE auto-login
|
|
as `wrolpi`, persistence partition created on first boot.
|
|
- [x] **Phase 2 — Debian Installer**: Standard `debian-installer` bundled
|
|
via `lb config --debian-installer live --debian-installer-gui true`.
|
|
GRUB exposes "Live", "Install", and "Graphical Install" entries.
|
|
Live boots into WROLPi; Install/Graphical Install copy the running
|
|
squashfs onto the target disk via Debian's `live-installer` flow.
|
|
(We previously tried Calamares-as-the-installer; the XFCE
|
|
desktop-icon click path proved unreliable in the wrolpi auto-login
|
|
session and the upstream d-i path is better-tested.)
|
|
- [ ] **Release**: CI on tag, hosting, wrolpi.org docs.
|
|
|
|
## References
|
|
|
|
- Debian Live Manual: https://live-team.pages.debian.net/live-manual/html/live-manual/index.en.html
|
|
- Persistence: https://live-team.pages.debian.net/live-manual/html/live-manual/customizing-run-time-behaviours.en.html
|