source: trunk/packages/sipb-xen-autoinstaller/guest/etc/init.d/rcS.sipb-xen @ 1078

Last change on this file since 1078 was 938, checked in by price, 16 years ago

sipb-xen-install deals with lvcreate, and some tweaks

File size: 647 bytes
RevLine 
[760]1#!/bin/bash
[741]2for x in $(cat /proc/cmdline); do
3    case $x in
[760]4        ip=*)
5        /usr/lib/klibc/bin/ipconfig -d ${x#ip=}
6        ;;
7        mirror=*)
[929]8        export MIRROR=${x#mirror=}
[760]9        ;;
10        dist=*)
[929]11        export DIST=${x#dist=}
[760]12        ;;
13        arch=*)
[929]14        export ARCH=${x#arch=}
[760]15        ;;
16        imagesize=*)
[938]17        export FSSIZE=${x#imagesize=}
[760]18        ;;
19        noinstall)
20        exit 0
21        ;;
[741]22    esac
23done
[929]24
[741]25mount -t tmpfs none /var/log
26mount -t tmpfs none /tmp
[760]27
[929]28export TARGET=/dev/hda
29export ARCH=${ARCH-amd64}
30export IP=$(ifconfig eth0 | sed -n 's/.*inet addr:\([0-9\.]*\).*/\1/p')
31export HOSTNAME=$(hostname)
[760]32
[929]33# args passed through environment rather than as 7 positional args
34/usr/sbin/sipb-xen-create-image
[760]35
[741]36busybox poweroff
37exit 0
Note: See TracBrowser for help on using the repository browser.