use /public for home#2061
Conversation
Greptile SummaryThis PR changes the
Confidence Score: 3/5The PR's intended change is effectively a no-op due to the initrc heredoc overriding HOME back to /home on every interactive session. A P1 defect is present: the HOME=/public set at line 3 is overridden by HOME=/home in the initrc heredoc (line 162) that is sourced as the bash rcfile. The change will not take effect for users without also updating line 162. src/plugins/terminal/scripts/init-alpine.sh — specifically line 162 inside the initrc heredoc. Important Files Changed
Sequence DiagramsequenceDiagram
participant Script as init-alpine.sh
participant Axs as axs (chroot helper)
participant Bash as bash --rcfile /initrc
Script->>Script: export HOME=/public (line 3)
Script->>Script: write /initrc heredoc<br/>includes: export HOME=/home (line 162)
Script->>Axs: exec axs -c bash --rcfile /initrc -i
Axs->>Bash: launch interactive session
Bash->>Bash: source /initrc → HOME overridden back to /home
Note over Bash: Effective HOME = /home (not /public)
|
| export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/share/bin:/usr/share/sbin:/usr/local/bin:/usr/local/sbin:/system/bin:/system/xbin:$PREFIX/local/bin | ||
| export PS1="\[\e[38;5;46m\]\u\[\033[39m\]@localhost \[\033[39m\]\w \[\033[0m\]\\$ " | ||
| export HOME=/home | ||
| export HOME=/public |
There was a problem hiding this comment.
initrc heredoc still sets HOME=/home, overriding this change
The HOME=/public set at line 3 is immediately overridden when bash launches. The initrc heredoc written at line 162 (inside this same script) still contains export HOME=/home, and that file is sourced as the rcfile for every interactive session via "$PREFIX/axs" -c "bash --rcfile /initrc -i" (line 248). As a result, users will still get HOME=/home in their shells despite this change.
No description provided.