From c9f1dab46ec04003c88fc09be8f7ee699dff39e3 Mon Sep 17 00:00:00 2001 From: Liam McLoughlin Date: Tue, 29 Nov 2011 18:17:26 +0000 Subject: [PATCH] Added sudo to VBoxManage call, to fix permission denied error when building a VirtualBox image BUG=None TEST=Run image_to_vm.sh to build a VirtualBox image for the x86-generic board, confirm image builds successfully Change-Id: I3ce9aac1eef6dfa695747e92e7d7e75ddd524027 Reviewed-on: https://gerrit.chromium.org/gerrit/12449 Reviewed-by: Richard Barnette Tested-by: Liam McLoughlin Commit-Ready: Jon Kliegman Reviewed-by: Jon Kliegman --- image_to_vm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_to_vm.sh b/image_to_vm.sh index cf9804152f..ae3aaab72f 100755 --- a/image_to_vm.sh +++ b/image_to_vm.sh @@ -205,7 +205,7 @@ echo Creating final image # Convert image to output format if [ "${FLAGS_format}" = "virtualbox" -o "${FLAGS_format}" = "qemu" ]; then if [ "${FLAGS_format}" = "virtualbox" ]; then - VBoxManage convertdd "${TEMP_IMG}" "${FLAGS_to}/${FLAGS_vbox_disk}" + sudo VBoxManage convertdd "${TEMP_IMG}" "${FLAGS_to}/${FLAGS_vbox_disk}" else mv ${TEMP_IMG} ${FLAGS_to}/${DEFAULT_QEMU_IMAGE} fi