Allow SUDO='' first-install on fresh ZFS roots #2

Merged
lksz merged 1 commit from fix/sudo-empty-first-install into main 2026-11-09 02:45:40 +00:00
Owner

Summary

  • Claim midclt-created ZFS mounts for the installing user so SUDO='' first-install can mkdir/clone.
  • Merge the git clone into the post-ensure_datasets scaffold (non-empty srv/) instead of skipping clone.

Test plan

  • SUDO='' first-install to a fresh root (e.g. /mnt/szapps/lxc/test.ogun.test) creates datasets owned by the installer and clones the repo
  • Published curl|bash from this branch/raw URL gets past bootstrap (no Permission denied on srv/bootstrap)
  • Existing /mnt/szapps/lxc/ogun tree still works for ogun status / idempotent setup first-install --skip-container
  • Live ogun container FILESYSTEM binds remain pointed at production paths when testing an alternate --root
## Summary - Claim midclt-created ZFS mounts for the installing user so `SUDO=''` first-install can mkdir/clone. - Merge the git clone into the post-`ensure_datasets` scaffold (non-empty `srv/`) instead of skipping clone. ## Test plan - [x] `SUDO=''` first-install to a fresh root (e.g. `/mnt/szapps/lxc/test.ogun.test`) creates datasets owned by the installer and clones the repo - [x] Published `curl|bash` from this branch/raw URL gets past bootstrap (no `Permission denied` on `srv/bootstrap`) - [x] Existing `/mnt/szapps/lxc/ogun` tree still works for `ogun status` / idempotent `setup first-install --skip-container` - [x] Live `ogun` container FILESYSTEM binds remain pointed at production paths when testing an alternate `--root`
midclt leaves new mounts root-owned and ensure_datasets makes the tree non-empty, so claim mounts via setperm and merge the git clone into the scaffold.

Co-authored-by: Cursor <cursoragent@cursor.com>
lksz merged commit 543539827c into main 2026-11-09 02:45:40 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
szmedia/ogun!2
No description provided.