aboutsummaryrefslogtreecommitdiff
path: root/scripts/testing/lib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/testing/lib')
-rwxr-xr-xscripts/testing/lib/vm-utils.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/testing/lib/vm-utils.sh b/scripts/testing/lib/vm-utils.sh
index 10c0ca5..b85e773 100755
--- a/scripts/testing/lib/vm-utils.sh
+++ b/scripts/testing/lib/vm-utils.sh
@@ -11,7 +11,9 @@
# VM configuration defaults
VM_CPUS="${VM_CPUS:-4}"
-VM_RAM="${VM_RAM:-4096}" # MB
+# 8 GiB headroom for AUR builds: makepkg runs -j$VM_CPUS, and parallel cc1plus
+# (~700 MB each on heavy C++ packages) OOM-killed under the old 4 GiB default.
+VM_RAM="${VM_RAM:-8192}" # MB
VM_DISK_SIZE="${VM_DISK_SIZE:-50}" # GB
# Filesystem profile: selects which base image + archangel config the harness
@@ -59,7 +61,11 @@ init_vm_paths() {
local img_suffix=""
[ "$FS_PROFILE" != "btrfs" ] && img_suffix="-$FS_PROFILE"
DISK_PATH="$VM_IMAGES_DIR/archsetup-base${img_suffix}.qcow2"
- OVMF_VARS="$VM_IMAGES_DIR/OVMF_VARS.fd"
+ # Per-profile NVRAM: UEFI boot entries live here, outside the qcow2, so a
+ # disk-snapshot revert can't restore them. Sharing one file across profiles
+ # let a zfs run's ZFSBootMenu entries clobber the btrfs GRUB entry, leaving
+ # the btrfs base unbootable (no removable ESP fallback to recover from).
+ OVMF_VARS="$VM_IMAGES_DIR/OVMF_VARS${img_suffix}.fd"
PID_FILE="$VM_IMAGES_DIR/qemu.pid"
MONITOR_SOCK="$VM_IMAGES_DIR/qemu-monitor.sock"
SERIAL_LOG="$VM_IMAGES_DIR/qemu-serial.log"