source: trunk/packages/sipb-xen-autoinstaller/domU/usr/sbin/sipb-xen-install @ 742

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

Change package name

File size: 477 bytes
RevLine 
[641]1#!/bin/bash
2
3TARGET=/dev/hda
4
[741]5# Read in the environment variables
6# For some strange reason, . $TARGET doesn't work reliably.
[641]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
[741]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.