Rev | Line | |
---|
[641] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | TARGET=/dev/hda |
---|
| 4 | |
---|
[741] | 5 | # Read in the environment variables |
---|
| 6 | # For some strange reason, . $TARGET doesn't work reliably. |
---|
[641] | 7 | eval `grep -a -m1 -B 100 ^return$ $TARGET | grep -v return` |
---|
| 8 | |
---|
| 9 | ARCH=amd64 |
---|
| 10 | |
---|
| 11 | echo ,${IMAGESIZE}$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 $TARGET |
---|
| 12 | |
---|
[741] | 13 | xen-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.