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