Skip to content

Commit

Permalink
feat: install Client for NFS on Windows build agent, which is require…
Browse files Browse the repository at this point in the history
…d for mounting FSx volumes
  • Loading branch information
jorisdon committed Sep 26, 2024
1 parent 6914408 commit 4a23dbb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions assets/packer/build-agents/windows/base_setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ catch {
Write "Failed to install OpenSSH"
}

try {
# Installing Client for NFS
Write "Installing Client for NFS"
Install-WindowsFeature NFS-Client
}
catch {
Write "Failed to install Client for NFS"
}

try {
Write Get-Disk | Where-Object partitionstyle -EQ 'raw'
Get-Disk | Where-Object partitionstyle -EQ \"raw\" | Initialize-Disk -PartitionStyle GPT -PassThru | New-Partition -AssignDriveLetter -UseMaximumSize | Format-Volume -FileSystem NTFS -NewFileSystemLabel \"Data Drive\" -Confirm:$false
Expand Down

0 comments on commit 4a23dbb

Please sign in to comment.