furtka/webinstaller
Daniel Maksymilian Syrnicki 19e72cf5c3
Some checks failed
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
CI / validate-json (push) Waiting to run
CI / markdown-links (push) Waiting to run
Build ISO / build-iso (push) Has been cancelled
fix(furtka): chmod 755 on version dir + heredoc furtka.json
Two install-path bugs surfaced by SSHing into the hot-fixed test VM:

1. mktemp creates the staging dir with mode 700 by default; the rename
   to /opt/furtka/versions/<ver>/ preserved it, and Caddy (running as
   the unprivileged `caddy` user) got 403 Forbidden because it couldn't
   traverse the version dir. Now the install + self-update both
   `chmod 755` after the rename.

2. _furtka_json_cmd was a silent no-op on the 43a39a4 VM — the
   base64-encoded body + sed substitution approach layered two sets of
   quotes through archinstall's custom_commands eval, and the sed
   step either never ran or didn't match. Replaced with a plain
   heredoc that interpolates $(date -Iseconds) and $(cat VERSION) at
   chroot runtime. Result lands /var/lib/furtka/furtka.json reliably,
   which is what the landing page's hostname chip and the settings
   page's install-date field depend on.

Both issues confirmed fixed by applying them manually on the VM
(chmod 755 /opt/furtka/versions/26.0-alpha + writing furtka.json by
hand): landing page, /apps, /settings, /furtka.json all now 200 with
correct content.

Tests updated (the chmod 755 gets asserted; the old base64+sed test
gets replaced with a heredoc-shape check; the updater test asserts
0o755 mode on the finished version dir).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 15:46:56 +02:00
..
static feat(webinstaller): plain-English drive picker on step 2 2026-04-16 12:01:57 +02:00
templates feat(webinstaller): plain-English drive picker on step 2 2026-04-16 12:01:57 +02:00
app.py fix(furtka): chmod 755 on version dir + heredoc furtka.json 2026-04-16 15:46:56 +02:00
drives.py feat(ui): shared /style.css + top nav across landing and /apps 2026-04-16 12:19:54 +02:00
requirements.txt Fix installer basics: syntax, secrets, consolidation 2026-04-13 19:44:29 +02:00