source: package_tags/sipb-xen-autoinstaller/2.2/guest/usr/sbin/sipb-xen-install

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

Change package name

File size: 477 bytes
Line 
1#!/bin/bash
2
3TARGET=/dev/hda
4
5# Read in the environment variables
6# For some strange reason, . $TARGET doesn't work reliably.
7eval `grep -a -m1 -B 100 ^return$ $TARGET | grep -v return`
8
9ARCH=amd64
10
11echo ,${IMAGESIZE}$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 $TARGET
12
13xen-create-image --image-dev ${TARGET}1 --swap-dev ${TARGET}2 --fs ext3 --ide --arch $ARCH --dist $DIST --hostname $HOSTNAME --mirror $MIRROR --ip=$IP --netmask=255.255.0.0 --gateway=18.181.0.1 --cache=yes
Note: See TracBrowser for help on using the repository browser.