2 for x in $(cat /proc/cmdline); do
5 /usr/lib/klibc/bin/ipconfig -d ${x#ip=}
8 export MIRROR=${x#mirror=}
11 export DIST=${x#dist=}
14 export ARCH=${x#arch=}
17 export IMAGESIZE=${x#imagesize=}
25 mount -t tmpfs none /var/log
26 mount -t tmpfs none /tmp
28 export TARGET=/dev/hda
29 export ARCH=${ARCH-amd64}
30 export IP=$(ifconfig eth0 | sed -n 's/.*inet addr:\([0-9\.]*\).*/\1/p')
31 export HOSTNAME=$(hostname)
33 # args passed through environment rather than as 7 positional args
34 /usr/sbin/sipb-xen-create-image