golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/darwin/aws/start-mutable.sh (about) 1 #!/bin/bash 2 # Copyright 2022 The Go Authors. All rights reserved. 3 # Use of this source code is governed by a BSD-style 4 # license that can be found in the LICENSE file. 5 6 # Start macOS VM from installed disk image. Changes written back to disk image. 7 8 if [[ $# != 2 ]]; then 9 echo "Usage: $0 <disk-image.qcow2> <OSK value>" 10 exit 1 11 fi 12 13 DISK=$1 14 OSK=$2 15 PORT=1 16 17 args=( 18 "$DISK" 19 "$OSK" 20 "$PORT" 21 ) 22 23 $HOME/qemu.sh "${args[@]}"