Ignore:
Timestamp:
Jan 2, 2010, 1:22:25 AM (15 years ago)
Author:
gdb
Message:

Gave invirt-admin new options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/invirt-admin/invirt-admin

    r2237 r2854  
    88    echo "  required options: --name, --fs-size, --swap-size, --memory,"
    99    echo "    --hostname, --ip, --mac, --arch, --dist, --mirror"
     10    echo
     11    echo "  optional options: --netmask, --gateway.  Defaults will be pulled from invirt-getconf"
    1012    echo
    1113    echo "  fs-size, swap-size, memory in MiB"
     
    1921shift
    2022
    21 vg=xenvg
     23vg=$(invirt-getconf xen.lvm.vg)
    2224while [ $# -gt 0 ]; do
    2325    case "$1" in
     
    3335        --dist)      dist=$2;      shift 2;;
    3436        --mirror)    mirror=$2;    shift 2;;
     37        --netmask)   netmask=$2;   shift 2;;
     38        --gateway)   gateway=$2;   shift 2;;
    3539        *)
    3640            echo "Unknown option: $1"
     
    5256ARCH=$arch DIST=$dist MIRROR=$mirror \
    5357HOSTNAME=$hostname IP=$ip \
     58NETMASK=$netmask GATEWAY=$gateway \
    5459 invirt-create-image
    5560
Note: See TracChangeset for help on using the changeset viewer.