use virsh attach-disk instead of attach-device
authorvarac <varacanero@zeromail.org>
Thu, 10 Jan 2013 14:02:01 +0000 (15:02 +0100)
committervarac <varacanero@zeromail.org>
Thu, 10 Jan 2013 14:02:01 +0000 (15:02 +0100)
so we don't need the libvirt-write-disk-attach-xml script

libvirt-write-disk-attach-xml [deleted file]

diff --git a/libvirt-write-disk-attach-xml b/libvirt-write-disk-attach-xml
deleted file mode 100755 (executable)
index e813452..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh -f
-
-disks="$1" && [ -n "$disks" ] ||
-   { echo "must give disk image"; exit 1; }
-name=${2:-my-example-dom}
-devs=bcdefghij
-n=0
-for disk in "$@"; do
-   disk=$(readlink -f "$disk") || { echo "failed to get path to $disk" 1>&2; exit 1; }
-   t=${devs#?}
-   dev=vd${devs%${t}}
-   devs=${devs#?}
-   n=$(($n+1))
-   cat <<EOF
-    <disk type='file' device='disk'>
-      <driver name='qemu' type='raw'/>
-      <source file='$disk'/>
-      <target dev='$dev' bus='virtio'/>
-      <boot order='$n'/>
-    </disk>
-EOF
-done
-