source: trunk/packages/sipb-xen-guest-installer/files/usr/sbin/sipb-xen-install @ 741

Last change on this file since 741 was 741, checked in by ecprice, 16 years ago

New guest-based autoinstaller

File size: 290 bytes
Line 
1#!/bin/bash
2
3export PATH
4
5HOSTNAME="$2"
6DIST="$3"
7MIRROR="$4"
8IMAGESIZE="$5"
9IP="$6"
10
11VOLUME=/dev/mapper/xenvg-d_${HOSTNAME}_hda
12
13cat > $VOLUME <<EOF
14HOSTNAME=$HOSTNAME
15DIST=$DIST
16MIRROR=$MIRROR
17IMAGESIZE=$IMAGESIZE
18IP=$IP
19return
20EOF
21
22xm create autoinstall.cfg target=$HOSTNAME guestip=$IP
Note: See TracBrowser for help on using the repository browser.