Changeset 2844


Ignore:
Timestamp:
Jan 1, 2010, 11:48:19 PM (14 years ago)
Author:
gdb
Message:

Don't hardcode netmask and gateway

Location:
trunk/packages/invirt-autoinstaller
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-autoinstaller/common/usr/sbin/invirt-create-image

    r2161 r2844  
    66#  ARCH, DIST, MIRROR
    77#  HOSTNAME, IP
     8#
     9# Optional: GATEWAY, NETMASK.  These default to values in invirt-getconf, if installed
    810
    911set -e
     12
     13if [ "$GATEWAY" = "" ]; then
     14    GATEWAY=$(invirt-getconf autoinstaller.gateway)
     15fi
     16
     17if [ "$NETMASK" = "" ]; then
     18    NETMASK=$(invirt-getconf autoinstaller.netmask)
     19fi
    1020
    1121echo ,"${FSSIZE}"$',L,*\n,,S\n;\n;' | sfdisk -uM -H 255 -S 63 "$TARGET"
     
    1424
    1525xen-create-image --image-dev "${TARGET}1" --swap-dev "${TARGET}2" --fs ext3 --ide \
    16  --hostname "$HOSTNAME" --ip="$IP" --netmask=255.255.0.0 --gateway=18.181.0.1 \
     26 --hostname "$HOSTNAME" --ip="$IP" --netmask="$NETMASK" --gateway="$GATEWAY" \
    1727 --arch "$ARCH" --dist "$DIST" --mirror "$MIRROR" --cache=yes --verbose
    1828
  • trunk/packages/invirt-autoinstaller/debian/changelog

    r2441 r2844  
     1invirt-autoinstaller (0.0.33) unstable; urgency=low
     2
     3  * Don't hardcode netmask and gateway
     4
     5 -- Greg Brockman <gdb@mit.edu>  Fri, 01 Jan 2010 23:31:55 -0500
     6
    17invirt-autoinstaller (0.0.32) unstable; urgency=low
    28
  • trunk/packages/invirt-autoinstaller/debian/control

    r2125 r2844  
    1818Provides: ${diverted-files}
    1919Conflicts: ${diverted-files}, sysvinit, upstart, xen-hypervisor
    20 Depends: ${misc:Depends}, patch, xen-tools, busybox-static, lvm2, kpartx, aptitude
     20Depends: ${misc:Depends}, patch, xen-tools, busybox-static, lvm2, kpartx, aptitude, invirt-base
    2121Description: SIPB Xen automatic guest-image installer system (guest)
    2222 This is our automatic guest-image installer system.
Note: See TracChangeset for help on using the changeset viewer.