Last change
on this file since 1164 was
1148,
checked in by price, 16 years ago
|
start udev in guest autoinstaller
also change 'noinstall' to 'noinstall=' because that's what remote passes
|
-
Property svn:executable set to
*
|
File size:
683 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | eval "set -- $(cat /proc/cmdline)" |
---|
3 | for x; do |
---|
4 | case $x in |
---|
5 | ip=*) |
---|
6 | /usr/lib/klibc/bin/ipconfig -d ${x#ip=} |
---|
7 | ;; |
---|
8 | mirror=*) |
---|
9 | export MIRROR=${x#mirror=} |
---|
10 | ;; |
---|
11 | dist=*) |
---|
12 | export DIST=${x#dist=} |
---|
13 | ;; |
---|
14 | arch=*) |
---|
15 | export ARCH=${x#arch=} |
---|
16 | ;; |
---|
17 | imagesize=*) |
---|
18 | export FSSIZE=${x#imagesize=} |
---|
19 | ;; |
---|
20 | noinstall=) |
---|
21 | exit 0 |
---|
22 | ;; |
---|
23 | esac |
---|
24 | done |
---|
25 | |
---|
26 | mount -t tmpfs none /var/log |
---|
27 | mount -t tmpfs none /tmp |
---|
28 | |
---|
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) |
---|
33 | |
---|
34 | /etc/init.d/udev start |
---|
35 | |
---|
36 | # args passed through environment rather than as 7 positional args |
---|
37 | /usr/sbin/sipb-xen-create-image |
---|
38 | |
---|
39 | busybox poweroff |
---|
40 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.