2011-01-20 02:37:18 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
2011-03-11 21:00:58 +01:00
|
|
|
if [ -z $1 ]; then
|
|
|
|
# reading the imagename
|
|
|
|
echo "what name should it have?"
|
|
|
|
read name
|
|
|
|
else
|
|
|
|
name=$1
|
|
|
|
fi
|
2011-01-20 02:37:18 +01:00
|
|
|
|
2011-03-11 21:00:58 +01:00
|
|
|
|
|
|
|
# generating the actual image
|
|
|
|
qemu-img create -f qcow2 $name.qcow2 16G
|
|
|
|
|
|
|
|
exit 0
|