aboutsummaryrefslogtreecommitdiff
path: root/kvm-creator
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-11-11 16:55:45 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-11-11 16:55:45 -0500
commit7ec0b002eba10c12d3687fec7ee8afa7b1d03729 (patch)
tree05180d1d37a21b04697bcf66b684181f6b001a17 /kvm-creator
parent7ae659fc52138afd9e0e024f2fa5bed1d489cb6a (diff)
downloadkvm-manager-7ec0b002eba10c12d3687fec7ee8afa7b1d03729.tar.gz
kvm-manager-7ec0b002eba10c12d3687fec7ee8afa7b1d03729.tar.bz2
make volume group default to standard vg name
Diffstat (limited to 'kvm-creator')
-rwxr-xr-xkvm-creator2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-creator b/kvm-creator
index b27af0a..744cb96 100755
--- a/kvm-creator
+++ b/kvm-creator
@@ -9,7 +9,7 @@ CMD="$1"
shift
NAME="$1"
-VG="$2"
+VG="${2:-vg_$(hostname)0}"
SIZE="${3:-3G}"
RAM="${4:-512}"
DISK="/dev/mapper/${VG}-${NAME}"