Changeset 760


Ignore:
Timestamp:
Jul 28, 2008, 3:20:22 AM (16 years ago)
Author:
ecprice
Message:

Change autoinstaller host to be only arguments to sipb-database

Location:
trunk/packages/sipb-xen-autoinstaller
Files:
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-autoinstaller/debian/changelog

    r758 r760  
     1sipb-xen-autoinstaller (2.4) unstable; urgency=low
     2
     3  * Switch to using just sipb-database options on the host
     4
     5 -- Eric Price <ecprice@sipb-xen-dev.mit.edu>  Mon, 28 Jul 2008 03:18:00 -0400
     6
    17sipb-xen-autoinstaller (2.3) unstable; urgency=low
    28
  • trunk/packages/sipb-xen-autoinstaller/debian/control.in

    r757 r760  
    1414Description: SIPB Xen automatic guest-image installer system (guest)
    1515 This is our automatic guest-image installer system.
    16 
    17 Package: sipb-xen-autoinstaller-host
    18 Architecture: all
    19 Depends: ${misc:Depends}, sipb-xen-host-master
    20 Description: SIPB Xen automatic guest-image installer system (host)
    21  This is our automatic guest-image installer system.
  • trunk/packages/sipb-xen-autoinstaller/guest/etc/init.d/rcS.sipb-xen

    r752 r760  
    1 #!/bin/sh
     1#!/bin/bash
    22for x in $(cat /proc/cmdline); do
    33    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        ;;
    1022    esac
    1123done
    1224mount -t tmpfs none /var/log
    1325mount -t tmpfs none /tmp
    14 sipb-xen-install
     26
     27
     28TARGET=/dev/hda
     29ARCH=${ARCH-amd64}
     30IP=$(ifconfig eth0 | sed -n 's/.*inet addr:\([0-9\.]*\).*/\1/p')
     31HOSTNAME=$(hostname)
     32
     33echo ,${IMAGESIZE}$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 $TARGET
     34
     35xen-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
    1537busybox poweroff
    1638exit 0
Note: See TracChangeset for help on using the changeset viewer.