image_to_vm.sh: Drop virtualbox output support
This is an untested configuration that's been broken
for a while.
BUG=chromium:413960
TEST=ran image_to_vm.sh
Change-Id: I633a0f28d60e9a250f7b25903f83ec9af90ae3b7
Reviewed-on: https://chromium-review.googlesource.com/217975
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Gaurav Shah <gauravsh@chromium.org>
Commit-Queue: Gaurav Shah <gauravsh@chromium.org>
diff --git a/image_to_vm.sh b/image_to_vm.sh
index 1bb6019..104d1a1 100755
--- a/image_to_vm.sh
+++ b/image_to_vm.sh
@@ -33,7 +33,7 @@
# We default to TRUE so the buildbot gets its image.
DEFINE_boolean force_copy ${FLAGS_FALSE} "Always rebuild test image"
DEFINE_string format "qemu" \
- "Output format, either qemu, vmware or virtualbox"
+ "Output format, either qemu or vmware"
DEFINE_string from "" \
"Directory containing rootfs.image and mbr.image"
DEFINE_string disk_layout "2gb-rootfs-updatable" \
@@ -48,8 +48,6 @@
"Copies normal image to ${CHROMEOS_TEST_IMAGE_NAME}, modifies it for test."
DEFINE_string to "" \
"Destination folder for VM output file(s)"
-DEFINE_string vbox_disk "${DEFAULT_VBOX_DISK}" \
- "Filename for the output disk (virtualbox only)."
DEFINE_string vmdk "${DEFAULT_VMDK}" \
"Filename for the vmware disk image (vmware only)."
DEFINE_string vmx "${DEFAULT_VMX}" \
@@ -230,12 +228,8 @@
echo Creating final image
# Convert image to output format
-if [ "${FLAGS_format}" = "virtualbox" -o "${FLAGS_format}" = "qemu" ]; then
- if [ "${FLAGS_format}" = "virtualbox" ]; then
- sudo VBoxManage convertdd "${TEMP_IMG}" "${FLAGS_to}/${FLAGS_vbox_disk}"
- else
- mv ${TEMP_IMG} ${FLAGS_to}/${DEFAULT_QEMU_IMAGE}
- fi
+if [ "${FLAGS_format}" = "qemu" ]; then
+ mv "${TEMP_IMG}" "${FLAGS_to}/${DEFAULT_QEMU_IMAGE}"
elif [ "${FLAGS_format}" = "vmware" ]; then
qemu-img convert -f raw "${TEMP_IMG}" \
-O vmdk "${FLAGS_to}/${FLAGS_vmdk}"