17 lines
213 B
Bash
17 lines
213 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
|
||
|
if [ -z $1 ]; then
|
||
|
# reading the imagename
|
||
|
echo "what name should it have?"
|
||
|
read name
|
||
|
else
|
||
|
name=$1
|
||
|
fi
|
||
|
|
||
|
|
||
|
# generating the actual image
|
||
|
qemu-img create -f qcow2 $name.qcow2 16G
|
||
|
|
||
|
exit 0
|