docker/symbolics: restore persistent home after Home Manager activation #87
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/a0-symbolics!87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/persistent-home-restore"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #71\n\n## What\n\n- New
restore_homestage indocker/symbolics/initialize.sh, gated byA0_PERSISTENT_HOME_DIR(default/a0/usr/home), running after Home Manager activation and before system-job prep.\n- Symlinks persisted home entries into/tmp/phdst(default/root) so SSH keys, git credentials, and other/rootstate survive container recreation.\n- Safety semantics: non-empty image-/Home-Manager-owned targets always win; empty real directories (bare.ssh) are replaced; fully idempotent.\n\n## Verification\n\nFive scenarios exercised against the extracted function: empty persistent home keeps fresh/root, populated home links in (.ssh,.gitconfig), non-empty HM-owned dir wins, empty dir gets replaced, idempotent rerun.\n\nAlso restores the lost executable bit carried by the earlier working-tree diff.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.