fix(lab): unlink lab binary before reinstall to avoid ETXTBSY #324
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills!324
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_lab_self_overwrite"
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?
lab build labrebuilds and reinstalls the runninglabbinary. The install stepcp-ed over~/.local/bin/labwithout unlinking it first, so overwriting the in-use executable failed withETXTBSY("Text file busy").Fix:
rm -fthe destination beforecpinlab_build.sh— unlink succeeds while the open inode keeps the running process alive, so the new binary installs cleanly.Verified: a plain
lab build lab --restart --installnow builds and installs end-to-end.Pull request closed