Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

vbox: update script

  • Loading branch information...
commit 77f75f1db03dc23bff521643ee79a8c3e32083ac 1 parent 3e4208c
Benjamin Zores gxben authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  scripts/vbox
  2. +1 −1  utils/openbricks.vbox
2  scripts/vbox
View
@@ -16,12 +16,12 @@ ISO_IMAGE="$ROOT/$1"
ISO_UUID=$(uuid)
VBOX_IMAGE=/tmp/openbricks.vbox
+[ -f $VBOX_IMAGE ] && rm -f $VBOX_IMAGE
cp -P utils/openbricks.vbox $VBOX_IMAGE
sed -i "s%__UUID__%$ISO_UUID%" $VBOX_IMAGE
sed -i "s%__LOCATION__%$ISO_IMAGE%" $VBOX_IMAGE
vboxmanage list vms | grep -q OpenBricks
[ $? -ne 0 ] && vboxmanage registervm $VBOX_IMAGE
virtualbox --startvm $VBOX_IMAGE
-rm $VBOX_IMAGE
exit 0
2  utils/openbricks.vbox
View
@@ -145,7 +145,7 @@
<StorageControllers>
<StorageController name="IDE Controller" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true">
<AttachedDevice passthrough="false" type="DVD" port="0" device="0">
- <Image uuid="{06c71f14-a393-4e17-bed4-1334e66fdc0d}"/>
+ <Image uuid="{__UUID__}"/>
</AttachedDevice>
<AttachedDevice passthrough="false" type="DVD" port="1" device="0"/>
</StorageController>
Please sign in to comment.
Something went wrong with that request. Please try again.