]> gitweb.fluxo.info Git - kvm-manager.git/commitdiff
make the name of the volume group a parameter to be passed rather than
authorJamie McClelland <jm@mayfirst.org>
Fri, 9 Oct 2009 00:18:11 +0000 (20:18 -0400)
committerJamie McClelland <jm@mayfirst.org>
Fri, 9 Oct 2009 00:18:11 +0000 (20:18 -0400)
hard coded.

README
kvm-creator

diff --git a/README b/README
index 6004cd2bfb3d28e657d5267a6843cc9994ef18e0..d1064f243fe2a611bc29ff610b62a9ed6771e729 100644 (file)
--- a/README
+++ b/README
@@ -30,7 +30,7 @@ Before you begin, you may want to prepare your system by doing the following:
 
 A typical workflow to start an installer is:
 
-kvm-creator create $GUESTNAME [$DISKSIZE [$RAM [$TAP [$MAC] ] ] ]
+kvm-creator create $GUESTNAME $VG [$DISKSIZE [$RAM [$TAP [$MAC] ] ] ]
 # set up boot media for the host ("put the installer CD in the drive"):
 ln -s /usr/local/share/ISOs/d-i.iso /home/$GUESTNAME/vms/$GUESTNAME/cd.iso
 # set up access to the account:
index 6ea989f718047c43f40eb25cbffb197bde296d72..6162241a40c2d078624ba44cda555136049c6093 100755 (executable)
@@ -9,10 +9,11 @@ CMD="$1"
 shift
 
 NAME="$1"
-SIZE="${2:-3G}"
-RAM="${3:-512}"
-TAP="${4:-$(( $( cat /etc/sv/kvm/*/env/TAP | sed 's/^tap//' | sort -n  | tail -n 1 ) + 1 ))}"
-MAC="${5:-$(cat /etc/sv/kvm/*/env/MAC | head -n1 | cut -f 1-5 -d: ):$(( $( cat /etc/sv/kvm/*/env/MAC | cut -f 6 -d:  | sort -n  | tail -n 1 ) + 1 ))}"
+VG="$2"
+SIZE="${3:-3G}"
+RAM="${4:-512}"
+TAP="${5:-$(( $( cat /etc/sv/kvm/*/env/TAP | sed 's/^tap//' | sort -n  | tail -n 1 ) + 1 ))}"
+MAC="${6:-$(cat /etc/sv/kvm/*/env/MAC | head -n1 | cut -f 1-5 -d: ):$(( $( cat /etc/sv/kvm/*/env/MAC | cut -f 6 -d:  | sort -n  | tail -n 1 ) + 1 ))}"
 
 VG=vg_malty0