diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-02-22 13:40:24 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-02-22 13:50:45 +0000 |
commit | f2b7b942ea8a53f22a4fe3270d241dcb6734d4a9 (patch) | |
tree | cb7db9e2635a2ca70f13181c412e478913cdaa74 | |
parent | e9617bfd24c187766e9b4f64331bd3df138e79ab (diff) | |
download | spectrum-f2b7b942ea8a53f22a4fe3270d241dcb6734d4a9.tar spectrum-f2b7b942ea8a53f22a4fe3270d241dcb6734d4a9.tar.gz spectrum-f2b7b942ea8a53f22a4fe3270d241dcb6734d4a9.tar.bz2 spectrum-f2b7b942ea8a53f22a4fe3270d241dcb6734d4a9.tar.lz spectrum-f2b7b942ea8a53f22a4fe3270d241dcb6734d4a9.tar.xz spectrum-f2b7b942ea8a53f22a4fe3270d241dcb6734d4a9.tar.zst spectrum-f2b7b942ea8a53f22a4fe3270d241dcb6734d4a9.zip |
release: don't pass -snapshot to QEMU
This is a remnant from before we made our own temporary file to act as the installation disk. Now, it just means that qemu will pointlessly copy the empty image to TMPDIR. Then, if that filesystem fills up (which is not unlikely because there's a good chance it's tmpfs) and writes start failing, QEMU will pause the VM. This made it difficult to test the installer. Signed-off-by: Alyssa Ross <hi@alyssa.is>
-rw-r--r-- | release/combined/run-vm.nix | 2 | ||||
-rw-r--r-- | release/installer/run-vm.nix | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/release/combined/run-vm.nix b/release/combined/run-vm.nix index 047bc3f..2fc474e 100644 --- a/release/combined/run-vm.nix +++ b/release/combined/run-vm.nix @@ -13,7 +13,7 @@ writeShellScript "run-spectrum-installer-vm.sh" '' truncate -s 10G "$img" exec 3<>"$img" rm -f "$img" - exec qemu-kvm -cpu host -m 4G -machine q35,kernel-irqchip=split -snapshot \ + exec qemu-kvm -cpu host -m 4G -machine q35,kernel-irqchip=split \ -display gtk,gl=on \ -device intel-iommu,intremap=on \ -device virtio-vga-gl \ diff --git a/release/installer/run-vm.nix b/release/installer/run-vm.nix index 4efbf1a..fe014f8 100644 --- a/release/installer/run-vm.nix +++ b/release/installer/run-vm.nix @@ -33,7 +33,7 @@ writeShellScript "run-spectrum-installer-vm.sh" '' truncate -s 10G "$img" exec 3<>"$img" rm -f "$img" - exec qemu-kvm -cpu host -m 4G -machine q35 -snapshot \ + exec qemu-kvm -cpu host -m 4G -machine q35 \ -display gtk,gl=on \ -device virtio-vga-gl \ -virtfs local,mount_tag=store,path=/nix/store,security_model=none,readonly=true \ |