diff options
| author | Sylvain Beucler <[email protected]> | 2010-07-04 17:58:14 +0200 |
|---|---|---|
| committer | Sylvain Beucler <[email protected]> | 2010-07-04 17:58:14 +0200 |
| commit | 7d732b8df4b134442839badc28041e75fbe13f1b (patch) | |
| tree | b360840faaa4450c8f856213e6cad4c9bb659783 | |
| parent | 6801f5d2ccef111ce566ba280fbb1bc4d9373aac (diff) | |
| download | autostrap-master.tar.gz | |
| -rwxr-xr-x | src/distribute.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/distribute.sh b/src/distribute.sh index 17a49aa..fc415c6 100755 --- a/src/distribute.sh +++ b/src/distribute.sh @@ -122,13 +122,14 @@ mkdir -p ~/.VirtualBox/HardDisks/ mv -f $disk_image_vdi ~/.VirtualBox/HardDisks/ VBoxManage -q createvm --name $image_name --register # Let's not use sata otherwise we'll get hda vs. sda conflicts, and -# we'd need to generate an initrd + use root=LABEL=savane. +# we'd need to generate an initrd + use root=LABEL=myimage. VBoxManage -q storagectl $image_name --name hda --add ide --controller PIIX4 VBoxManage -q storageattach $image_name --storagectl hda --port 0 --device 0 --type hdd --medium $disk_image_vdi VBoxManage -q modifyhd $disk_image_vdi --compact VBoxManage -q modifyvm $image_name --nic1 nat --nictype1 82540EM VBoxManage -q modifyvm $image_name --ostype Debian -VBoxManage -q export $image_name -o savane.ovf +rm -f ${disk_image%.img}.vmdk +VBoxManage -q export $image_name -o ${disk_image%.img}.ovf # Clean-up VBoxManage -q storagectl $image_name --name hda --remove VBoxManage -q unregistervm $image_name --delete |
