fix: restore user-mode libvirt (no sudo) and fix preseed partitioning
Two critical fixes in this commit:
1. VM Creation Regression (13139f2):
- Restored qemu:///session (user mode) from qemu:///system (root mode)
- Changed storage paths from /var/lib/libvirt/images to ~/.local/share/libvirt/images
- Removed all sudo calls from vm_create and vm_destroy functions
- Updated test to expect session URI
2. Preseed Partitioning Fix:
- Added GPT partition table directives
- Added LVM confirmation settings
- Fixed EFI partition syntax per Debian official example
- Fixed /boot max size from 512 to 1024
- KEY FIX: Added 'partman-auto/choose_recipe select efi-boot-root'
Additional changes:
- Added LICENSE file (GNU AGPL v3.0 only)
- Updated AGENTS.md to enforce auto-commit/push behavior
💘 Generated with Crush
Assisted-by: GLM-4.7 via Crush <crush@charm.land>
This commit is contained in:
@@ -253,8 +253,8 @@
|
||||
grep -q 'VM_DISK_SIZE=' /workspace/run.sh
|
||||
}
|
||||
|
||||
@test "run.sh uses system libvirt URI" {
|
||||
grep -q 'qemu:///system' /workspace/run.sh
|
||||
@test "run.sh uses session libvirt URI (no root required)" {
|
||||
grep -q 'qemu:///session' /workspace/run.sh
|
||||
}
|
||||
|
||||
# =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user