Ignore:
Timestamp:
Sep 28, 2008, 4:40:06 PM (16 years ago)
Author:
price
Message:

factor out common autoinstaller code for both guest and host

Location:
trunk/packages/sipb-xen-autoinstaller
Files:
6 added
1 deleted
5 edited
1 copied

Legend:

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

    r760 r929  
     1sipb-xen-autoinstaller (2.5) unstable; urgency=low
     2
     3  * Add sipb-xen-autoinstaller-host binary package, to contain
     4    autoinstaller for system VMs
     5  * Put common files in both binary packages
     6
     7 -- Greg Price <price@mit.edu>  Sun, 28 Sep 2008 16:36:56 -0400
     8
    19sipb-xen-autoinstaller (2.4) unstable; urgency=low
    210
  • trunk/packages/sipb-xen-autoinstaller/debian/control

    r753 r929  
    66Standards-Version: 3.7.2
    77
     8Package: sipb-xen-autoinstaller-host
     9Architecture: all
     10Provides: ${diverted-files}
     11Conflicts: ${diverted-files}
     12Depends: ${misc:Depends}, patch, xen-tools, sipb-xen-dom0
     13Conflicts: sysvinit, upstart
     14Description: SIPB Xen automatic guest-image installer system (host)
     15 This is our automatic guest-image installer system.
     16
    817Package: sipb-xen-autoinstaller-guest
    918Architecture: all
    1019Provides: ${diverted-files}
    1120Conflicts: ${diverted-files}
    12 Depends: ${misc:Depends}, patch, xen-tools, busybox-static
     21Depends: ${misc:Depends}, patch, xen-tools, busybox-static, lvm2
    1322Conflicts: sysvinit, upstart
    1423Description: SIPB Xen automatic guest-image installer system (guest)
    1524 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/debian/control.in

    r760 r929  
    55Build-Depends: @cdbs@
    66Standards-Version: 3.7.2
     7
     8Package: sipb-xen-autoinstaller-host
     9Architecture: all
     10Provides: ${diverted-files}
     11Conflicts: ${diverted-files}
     12Depends: ${misc:Depends}, patch, xen-tools, sipb-xen-dom0
     13Conflicts: sysvinit, upstart
     14Description: SIPB Xen automatic guest-image installer system (host)
     15 This is our automatic guest-image installer system.
    716
    817Package: sipb-xen-autoinstaller-guest
  • trunk/packages/sipb-xen-autoinstaller/debian/sipb-xen-autoinstaller-guest.install

    r745 r929  
     1common/* .
    12guest/* .
  • trunk/packages/sipb-xen-autoinstaller/guest/etc/init.d/rcS.sipb-xen

    r760 r929  
    66        ;;
    77        mirror=*)
    8         MIRROR=${x#mirror=}
     8        export MIRROR=${x#mirror=}
    99        ;;
    1010        dist=*)
    11         DIST=${x#dist=}
     11        export DIST=${x#dist=}
    1212        ;;
    1313        arch=*)
    14         ARCH=${x#arch=}
     14        export ARCH=${x#arch=}
    1515        ;;
    1616        imagesize=*)
    17         IMAGESIZE=${x#imagesize=}
     17        export IMAGESIZE=${x#imagesize=}
    1818        ;;
    1919        noinstall)
     
    2222    esac
    2323done
     24
    2425mount -t tmpfs none /var/log
    2526mount -t tmpfs none /tmp
    2627
     28export TARGET=/dev/hda
     29export ARCH=${ARCH-amd64}
     30export IP=$(ifconfig eth0 | sed -n 's/.*inet addr:\([0-9\.]*\).*/\1/p')
     31export HOSTNAME=$(hostname)
    2732
    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
    3635
    3736busybox poweroff
Note: See TracChangeset for help on using the changeset viewer.