diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-19 10:18:49 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-11-27 08:48:02 +0100 |
commit | 553fe4fb0116d3d4a867f07ca3bdef65f6c6dbc0 (patch) | |
tree | 3dc8e22eafe7d2895ac3be5e4d8b8de6b6b80fdf | |
parent | 98d05b1131be6e650b4da931929fa0c08d3a8723 (diff) | |
download | vyos-build-553fe4fb0116d3d4a867f07ca3bdef65f6c6dbc0.tar.gz vyos-build-553fe4fb0116d3d4a867f07ca3bdef65f6c6dbc0.zip |
Makefile: add new target qemu-live
Simply boot a live qemu version from the latest ISO build
(10:18) cpo lnx01:~/vyos-build [current] # sudo make qemu-live
if [ ! -f build/live-image-amd64.hybrid.iso ]; then
echo "Could not find build/live-image-amd64.hybrid.iso"
exit 1
fi
scripts/check-qemu-install --qemu-cmd build/live-image-amd64.hybrid.iso
INFO - Creating Disk image testinstall-20231119-101823-4483.img
SeaBIOS (version 1.16.2-debian-1.16.2-1)
Machine UUID f48b60b2-e6ad-49ef-9d09-4245d0585e52
Booting from DVD/CD...
ISOLINUX 6.04 20200816 ETCD Copyright (C) 1994-2015 H. Peter Anvin et al
(cherry picked from commit b3d0ebaf1d7d5b5a54be284e553defb8ed4a7a6f)
-rw-r--r-- | Makefile | 5 | ||||
-rwxr-xr-x | scripts/check-qemu-install | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -54,6 +54,11 @@ testc: checkiso testraid: checkiso scripts/check-qemu-install --debug --configd --raid --configtest build/live-image-amd64.hybrid.iso +.PHONY: qemu-live +.ONESHELL: +qemu-live: checkiso + scripts/check-qemu-install --qemu-cmd build/live-image-amd64.hybrid.iso + .PHONE: oci .ONESHELL: oci: checkiso diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index 1095c7ee..7c89327d 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -271,7 +271,7 @@ gen_disk(args.disk) if args.qemu_cmd: tmp = get_qemu_cmd('TESTVM', kvm, args.uefi, args.disk, diskname_raid, args.iso) - print(tmp) + os.system(tmp) exit(0) test_timeout = 3 *3600 # 3 hours (in seconds) |