Changeset 937 for trunk


Ignore:
Timestamp:
Sep 28, 2008, 7:34:10 PM (16 years ago)
Author:
price
Message:

tweak autoinstall scripts

Location:
trunk/packages/sipb-xen-autoinstaller
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-autoinstaller/common/usr/sbin/sipb-xen-create-image

    r931 r937  
    22# Usage: no command-line args.
    33# "arguments" come in environment:
    4 #  TARGET a device filename, IMAGESIZE its size in XXXX what unit?
     4#  TARGET a device filename
     5#  IMAGESIZE the desired filesystem size in megabytes (rest will be swap)
    56#  ARCH, DIST, MIRROR
    67#  HOSTNAME, IP
     8
     9set -e
    710
    811echo ,"${IMAGESIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET"
  • trunk/packages/sipb-xen-autoinstaller/host/usr/sbin/sipb-xen-install

    r931 r937  
    77export PATH #WTF?
    88
     9LVNAME="$1"
    910export HOSTNAME="$2"
    1011export DIST="$3"
    1112export MIRROR="$4"
    12 export IMAGESIZE="$5"
     13export IMAGESIZE="$5"  # in megabytes
    1314export IP="$6"
    1415
     
    2122fi
    2223
    23 export TARGET=/dev/mapper/xenvg-d_$(echo "$HOSTNAME" | sed -e 's/-/--/g')_hda
     24export TARGET=/dev/mapper/xenvg-$(echo "$LVNAME" | sed -e 's/-/--/g')_hda
    2425
    2526/usr/sbin/sipb-xen-create-image
Note: See TracChangeset for help on using the changeset viewer.