Changeset 929 for trunk/packages/sipb-xen-autoinstaller/guest
- Timestamp:
- Sep 28, 2008, 4:40:06 PM (16 years ago)
- Location:
- trunk/packages/sipb-xen-autoinstaller/guest
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-autoinstaller/guest/etc/init.d/rcS.sipb-xen
r760 r929 6 6 ;; 7 7 mirror=*) 8 MIRROR=${x#mirror=}8 export MIRROR=${x#mirror=} 9 9 ;; 10 10 dist=*) 11 DIST=${x#dist=}11 export DIST=${x#dist=} 12 12 ;; 13 13 arch=*) 14 ARCH=${x#arch=}14 export ARCH=${x#arch=} 15 15 ;; 16 16 imagesize=*) 17 IMAGESIZE=${x#imagesize=}17 export IMAGESIZE=${x#imagesize=} 18 18 ;; 19 19 noinstall) … … 22 22 esac 23 23 done 24 24 25 mount -t tmpfs none /var/log 25 26 mount -t tmpfs none /tmp 26 27 28 export TARGET=/dev/hda 29 export ARCH=${ARCH-amd64} 30 export IP=$(ifconfig eth0 | sed -n 's/.*inet addr:\([0-9\.]*\).*/\1/p') 31 export HOSTNAME=$(hostname) 27 32 28 TARGET=/dev/hda 29 ARCH=${ARCH-amd64} 30 IP=$(ifconfig eth0 | sed -n 's/.*inet addr:\([0-9\.]*\).*/\1/p') 31 HOSTNAME=$(hostname) 32 33 echo ,${IMAGESIZE}$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 $TARGET 34 35 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 33 # args passed through environment rather than as 7 positional args 34 /usr/sbin/sipb-xen-create-image 36 35 37 36 busybox poweroff
Note: See TracChangeset
for help on using the changeset viewer.