Skip to content

Commit e0bcac3

Browse files
Merge pull request #1799 from rneugeba/win-script
scripts: Rename named pipe for the serial port on Hyper-V
2 parents 3efdc69 + 008edbb commit e0bcac3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/LinuxKit.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function New-LinuxKitVM {
8989
$vm = Get-VM $VmName -ea SilentlyContinue
9090
if ($vm) {
9191
if ($vm.Length -ne 1) {
92-
Fatal "Multiple VMs exist with the name $VmName. Delete invalid ones or reset Docker to factory defaults."
92+
Fatal "Multiple VMs exist with the name $VmName. Delete invalid ones."
9393
}
9494
} else {
9595
Write-Output "Creating VM $VmName..."
@@ -137,7 +137,7 @@ function New-LinuxKitVM {
137137

138138
$iso = $vm | Get-VMFirmware | select -ExpandProperty BootOrder | ? { $_.FirmwarePath.EndsWith("Scsi(0,1)") }
139139
$vm | Set-VMFirmware -EnableSecureBoot Off -FirstBootDevice $iso
140-
$vm | Set-VMComPort -number 1 -Path "\\.\pipe\docker$VmName-com1"
140+
$vm | Set-VMComPort -number 1 -Path "\\.\pipe\$VmName-com1"
141141

142142
Write-Output "VM created."
143143
}

0 commit comments

Comments
 (0)