From b6782ce4f14d84e5b9a42aee51e60488fd17fe91 Mon Sep 17 00:00:00 2001 From: Yan Date: Sun, 20 Mar 2022 16:45:06 +0100 Subject: [PATCH] Remove VBox storagectl fiddling This seemed like a good idea at the time... Changes to VBox and variations on different systems have made it useless. --- Makefile | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Makefile b/Makefile index b5873b7..5009fe3 100644 --- a/Makefile +++ b/Makefile @@ -35,22 +35,8 @@ cold-image: build-cold-image.lisp asdf cd Mezzano/ && $(SBCL) --dynamic-space-size 2048 --load ../build-cold-image.lisp cold-image-vmdk: cold-image - $(eval VM_NAME = $(shell VBoxManage showmediuminfo mezzano.vmdk |awk '/^In use by VMs:/{print $$5}')) - $(eval VM_UUID = $(shell VBoxManage showmediuminfo mezzano.vmdk |awk -F ': |[()]' '/^In use by VMs: .* \(UUID:(.*)\)/{print $$4}')) - $(eval DISK_UUID = $(shell VBoxManage showmediuminfo mezzano.vmdk |awk '/^UUID:/{print $$2}')) - @echo "VM_NAME: $(VM_NAME)" - @echo "VM_UUID: $(VM_UUID)" - @echo "DISK_UUID: $(DISK_UUID)" - -VBoxManage storagectl "$(VM_NAME)" --name IDE --remove - -VBoxManage closemedium disk mezzano.vmdk rm -f mezzano.vmdk VBoxManage convertfromraw --format vmdk mezzano.image mezzano.vmdk -ifneq ($(VM_NAME),) -# This fails when the image isn't attached to any VM and there's nothing to update. - @echo "*** Failures from VBoxManage are harmless and can be ignored. ***" - VBoxManage storagectl "$(VM_NAME)" --name IDE --add ide --controller PIIX4 - VBoxManage storageattach "$(VM_NAME)" --storagectl IDE --port 0 --device 0 --type hdd --medium mezzano.vmdk -endif run-file-server: run-file-server.lisp cd Mezzano/file-server/ && $(SBCL) --load ../../run-file-server.lisp