@@ -49,8 +49,8 @@ stdenv.mkDerivation (finalAttrs: {
4949
5050 qemu-img create -b $rootDisk -F "$image_type" -f qcow2 ./disk.qcow2
5151
52- cp ${ pkgs . callPackage ./ qemu-efi.nix { } } ./ QEMU_EFI.img
53- chmod +w ./ QEMU_EFI.img
52+ cp ${ pkgsBuildBuild . qemu } /share/ qemu/edk2-aarch64-code.fd QEMU_EFI.fd
53+ chmod +w QEMU_EFI.fd
5454
5555 extra_qemu_opts="${ image . extraQemuOpts or "" } "
5656
@@ -67,7 +67,8 @@ stdenv.mkDerivation (finalAttrs: {
6767 -drive id=disk1,file=./disk.qcow2,if=virtio \
6868 -netdev user,id=net0,hostfwd=tcp::$port-:22 -device virtio-net-pci,netdev=net0 \
6969 ${ lib . optionalString ( system == "aarch64-linux" )
70- "-cpu cortex-a53 -machine virt -drive if=pflash,format=raw,file=./QEMU_EFI.img" } \
70+ "-cpu cortex-a53 -machine virt -pflash ./QEMU_EFI.fd"
71+ } \
7172 $extra_qemu_opts &
7273 qemu_pid=$!
7374 trap "kill $qemu_pid" EXIT
@@ -79,7 +80,7 @@ stdenv.mkDerivation (finalAttrs: {
7980 chmod 0400 ./vagrant_insecure_key
8081
8182 export HOME=$(realpath .)
82- ssh_opts="-o StrictHostKeyChecking=no -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa -i ./vagrant_insecure_key"
83+ ssh_opts="-o StrictHostKeyChecking=no -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa -o ControlPath=none - i ./vagrant_insecure_key"
8384 ssh="ssh -p $port -q $ssh_opts vagrant@localhost"
8485 echo "ssh command: $ssh"
8586 sshRoot="ssh -p $port -q $ssh_opts root@localhost"
0 commit comments