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