source:
trunk/packages/sipb-xen-autoinstaller/files/usr/sbin/sipb-xen-install
@
742
Last change on this file since 742 was 742, checked in by ecprice, 16 years ago | |
---|---|
File size: 290 bytes |
Line | |
---|---|
1 | #!/bin/bash |
2 | |
3 | export PATH |
4 | |
5 | HOSTNAME="$2" |
6 | DIST="$3" |
7 | MIRROR="$4" |
8 | IMAGESIZE="$5" |
9 | IP="$6" |
10 | |
11 | VOLUME=/dev/mapper/xenvg-d_${HOSTNAME}_hda |
12 | |
13 | cat > $VOLUME <<EOF |
14 | HOSTNAME=$HOSTNAME |
15 | DIST=$DIST |
16 | MIRROR=$MIRROR |
17 | IMAGESIZE=$IMAGESIZE |
18 | IP=$IP |
19 | return |
20 | EOF |
21 | |
22 | xm create autoinstall.cfg target=$HOSTNAME guestip=$IP |
Note: See TracBrowser
for help on using the repository browser.