File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 351
351
if [[ -n ${CHECKS["ssh-over-vsock"]} ]]; then
352
352
if [[ " $( limactl ls " ${NAME} " --yq .vmType) " == " vz" ]]; then
353
353
INFO " Testing SSH over vsock"
354
+ limactl stop " ${NAME} "
354
355
set -x
355
- if ! LIMA_SSH_OVER_VSOCK=false limactl restart " ${NAME} " 2>&1 | grep -iq " skipping detection of SSH server on vsock port" ; then
356
+ if ! LIMA_SSH_OVER_VSOCK=false limactl start " ${NAME} " 2>&1 | grep -iq " skipping detection of SSH server on vsock port" ; then
356
357
set +x
357
358
diagnose " ${NAME} "
358
359
ERROR " LIMA_SSH_OVER_VSOCK=false did not disable vsock forwarder"
359
360
exit 1
360
361
fi
361
- if ! LIMA_SSH_OVER_VSOCK=true limactl restart " ${NAME} " 2>&1 | grep -iq " started vsock forwarder" ; then
362
+ limactl stop " ${NAME} "
363
+ if ! LIMA_SSH_OVER_VSOCK=true limactl start " ${NAME} " 2>&1 | grep -iq " started vsock forwarder" ; then
362
364
set +x
363
365
diagnose " ${NAME} "
364
366
ERROR " LIMA_SSH_OVER_VSOCK=true did not enable vsock forwarder"
365
367
exit 1
366
368
fi
367
- if ! LIMA_SSH_OVER_VSOCK=" " limactl restart " ${NAME} " 2>&1 | grep -iq " started vsock forwarder" ; then
369
+ limactl stop " ${NAME} "
370
+ if ! LIMA_SSH_OVER_VSOCK=" " limactl start " ${NAME} " 2>&1 | grep -iq " started vsock forwarder" ; then
368
371
set +x
369
372
diagnose " ${NAME} "
370
373
ERROR " LIMA_SSH_OVER_VSOCK= did not enable vsock forwarder"
You can’t perform that action at this time.
0 commit comments