2 eval "set -- $(cat /proc/cmdline)"
6 /usr/lib/klibc/bin/ipconfig -d ${x#ip=}
9 export MIRROR=${x#mirror=}
12 export DIST=${x#dist=}
15 export ARCH=${x#arch=}
18 export FSSIZE=${x#imagesize=}
26 mount -t tmpfs none /var/log
27 mount -t tmpfs none /tmp
29 export TARGET=/dev/hda
30 export ARCH=${ARCH-amd64}
31 export IP=$(ifconfig eth0 | sed -n 's/.*inet addr:\([0-9\.]*\).*/\1/p')
32 export HOSTNAME=$(hostname)
34 /etc/init.d/udev start
36 # args passed through environment rather than as 7 positional args
37 /usr/sbin/sipb-xen-create-image