Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down