diff --git a/Rsconscript b/Rsconscript index fbad203..1323956 100644 --- a/Rsconscript +++ b/Rsconscript @@ -208,7 +208,35 @@ end # See README.md for how to set up VirtualBox for HOS. task "mk-vmdk", desc: "Create VirtualBox VMDK virtual drive for HOS" do - sh %W[VBoxManage internalcommands createrawvmdk -filename HOS.vmdk -rawdisk #{File.expand_path(hello_env.expand("^/HOS.img"))}] + path = File.expand_path(hello_env.expand("^/HOS.img")) + sectors = File.stat(path).size / 512 + File.binwrite("HOS.vmdk", <