mirror of
https://github.com/theupriser/steamify-cachyos-dev.git
synced 2026-10-05 12:45:56 +02:00
feat: vmisobuild.sh (ISO build in the VM, package cache per VM), vmisoboot.sh (ISO VM for Calamares), qmpshot.py/qmpclick.py; run.sh VM_CACHE/VM_CPUS/VM_NOGL/VM_PORT
This commit is contained in:
1 parent
fec0ce5b8e
commit
3ccbb62bd2
7 files changed
+173
-7
No files matched your search
@@ -9,6 +9,7 @@
|
||||
# VM_LOG (QEMU output, default $VM_DIR/vm.log).
|
||||
set -euo pipefail
|
||||
. "$(dirname "$0")/common.sh"
|
||||
repo_dir="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
SNAPSHOT="${SNAPSHOT:-ssh-ready}"
|
||||
VM_LOG="${VM_LOG:-$VM_DIR/vm.log}"
|
||||
|
||||
@@ -21,6 +22,8 @@ fi
|
||||
|
||||
echo "Restoring snapshot '$SNAPSHOT' in $VM_DIR..."
|
||||
cd "$VM_DIR"
|
||||
# Always this repo's run.sh: a copy in $VM_DIR falls behind (VM_CACHE, ...).
|
||||
cp "$repo_dir/run.sh" run.sh
|
||||
qemu-img snapshot -a "$SNAPSHOT" disk.qcow2
|
||||
cp "vars.$SNAPSHOT.fd" vars.fd
|
||||
|
||||
|
||||
Reference in new issue
Block a user