Changeset 760 for trunk/packages/sipb-xen-autoinstaller/guest
- Timestamp:
- Jul 28, 2008, 3:20:22 AM (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
r752 r760 1 #!/bin/ sh1 #!/bin/bash 2 2 for x in $(cat /proc/cmdline); do 3 3 case $x in 4 ip=*) 5 /usr/lib/klibc/bin/ipconfig -d ${x#ip=} 6 ;; 7 noinstall) 8 exit 0 9 ;; 4 ip=*) 5 /usr/lib/klibc/bin/ipconfig -d ${x#ip=} 6 ;; 7 mirror=*) 8 MIRROR=${x#mirror=} 9 ;; 10 dist=*) 11 DIST=${x#dist=} 12 ;; 13 arch=*) 14 ARCH=${x#arch=} 15 ;; 16 imagesize=*) 17 IMAGESIZE=${x#imagesize=} 18 ;; 19 noinstall) 20 exit 0 21 ;; 10 22 esac 11 23 done 12 24 mount -t tmpfs none /var/log 13 25 mount -t tmpfs none /tmp 14 sipb-xen-install 26 27 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 36 15 37 busybox poweroff 16 38 exit 0
Note: See TracChangeset
for help on using the changeset viewer.