Skip to content

fix(install): make binary install atomic - #2153

Open
amarkdotdev wants to merge 1 commit into
linkerd:mainfrom
amarkdotdev:fix/90-atomic-install
Open

fix(install): make binary install atomic#2153
amarkdotdev wants to merge 1 commit into
linkerd:mainfrom
amarkdotdev:fix/90-atomic-install

Conversation

@amarkdotdev

Copy link
Copy Markdown

Summary

  • Create install temp directories under $INSTALLROOT (default ~/.linkerd2) so mv to $INSTALLROOT/bin stays on the same filesystem and remains atomic.
  • Garbage-collect leftover linkerd2.* temp directories from interrupted installs before starting a new download.

Fixes #90

Test plan

  • Run curl -fsSL https://run.linkerd.io/install | sh (or invoke the script locally) and confirm the CLI installs successfully
  • Interrupt an install mid-download and re-run; confirm stale temp dirs are removed and install completes
  • Verify linkerd version works after install

Use a temp directory under ~/.linkerd2 so mv to the install
destination stays on the same filesystem.

Fixes linkerd#90

Signed-off-by: amarkdotdev <amark@g.jct.ac.il>
Signed-off-by: Aaron <amark@g.jct.ac.il>
@amarkdotdev
amarkdotdev force-pushed the fix/90-atomic-install branch from 85a6bb4 to b8c0bff Compare September 4, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

run.linkerd.io/install can corrupt installs

1 participant