Skip to content

Commit 4b0fbae

Browse files
authored
copy system tar to bosh bin dir (#103)
* copy system tar to bosh bin, stemcell building process Protect_Dir behavior didn't like the symlink because it was following the link to windows system32 dir when trying to manage acls. attempts at using the cacls /L flag didnt go anywhere * removal of bsd tar 614bdc0 * garden-runc release where things were fixed: https://github.com/cloudfoundry/garden-runc-release/releases/tag/v1.76.0
1 parent 46f3492 commit 4b0fbae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/BOSH.Agent/BOSH.Agent.psm1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ function Copy-Agent
6868
Move-Item (Join-Path $boshDir (Join-Path "deps" "*")) $depsDir
6969
Remove-Item -Path (Join-Path $boshDir "deps") -Force
7070

71-
New-Item -Path (Join-Path $depsDir "tar.exe") -ItemType SymbolicLink -V "C:\Windows\system32\tar.exe"
71+
# Although we previously removed bsdtar in favor of the system tar that
72+
# comes with windows, some older garden-runc releases (< v1.76.0) still
73+
# expect tar to live there. This preserves backwards compatability. We can
74+
# likely rip this out again once we're out of some reasonable window where
75+
# someone will still be running an older garden-runc release
76+
Copy-Item "C:\Windows\system32\tar.exe" -Destination (Join-Path $depsDir "tar.exe")
7277
}
7378

7479

0 commit comments

Comments
 (0)