3 source .
/mk-ramdisk-common
5 inst
$1/qemu
"$MNTIMAGE" /bin
/qemu
7 mkdir
-p $MNTIMAGE/usr
/local
/share
/qemu
8 inst
/usr
/local
/share
/qemu
/bios.bin
"$MNTIMAGE" /usr
/local
/share
/qemu
/bios.bin
9 inst
/usr
/local
/share
/qemu
/vgabios-cirrus.bin
"$MNTIMAGE" /usr
/local
/share
/qemu
/vgabios-cirrus.bin
10 inst
/usr
/local
/share
/qemu
/pxe-e1000.rom
"$MNTIMAGE" /usr
/local
/share
/qemu
/pxe-e1000.rom
11 inst
/usr
/local
/share
/qemu
/pxe-rtl8139.rom
"$MNTIMAGE" /usr
/local
/share
/qemu
/pxe-rtl8139.rom
12 inst
/etc
/fb.modes
"$MNTIMAGE" /etc
/fb.modes
14 inst
$1/udevd
"$MNTIMAGE" /bin
/udevd
15 inst
$1/udevstart
"$MNTIMAGE" /bin
/udevstart
16 inst
$1/brctl
"$MNTIMAGE" /bin
/brctl
17 inst
$1/netconfig
"$MNTIMAGE" /bin
/netconfig
18 inst
$1/qemu-wrapper
"$MNTIMAGE" /bin
/qemu-wrapper
19 inst
$1/qemu-ifup
"$MNTIMAGE" /bin
/qemu-ifup
21 emit
"/bin/insmod /lib/modules/2.6.32.41/kernel/drivers/video/sysfillrect.ko"
22 emit
"/bin/insmod /lib/modules/2.6.32.41/kernel/drivers/video/syscopyarea.ko"
23 emit
"/bin/insmod /lib/modules/2.6.32.41/kernel/drivers/video/sysimgblt.ko"
24 emit
"/bin/insmod /lib/modules/2.6.32.41/kernel/drivers/video/fb_sys_fops.ko"
25 emit
"/bin/insmod /lib/modules/2.6.32.41/kernel/drivers/input/xen-kbdfront.ko"
27 #add ioemu-stubdom code here
28 emit
"echo Starting udevd"
29 emit
"/bin/udevd --daemon"
32 emit
"echo Config Network > /dev/hvc0"
33 emit
"/bin/netconfig eth0 down mac fe:ff:ff:ff:ff:ff up"
34 emit
"/bin/brctl addbr xenbr0"
35 emit
"/bin/brctl addif xenbr0 eth0"
36 emit
"/bin/netconfig xenbr0 up"
37 emit
"/bin/brctl show > /dev/hvc0"
39 emit
"echo Running qemu"
40 emit
"/bin/qemu-wrapper"
42 emit
"echo Exit form qemu"
48 mkdir
-p $MNTIMAGE/etc
/udev
49 cp -ar /etc
/udev
/udev.conf
$MNTIMAGE/etc
/udev
/udev.conf
52 echo nash-find
"$@" |
/sbin
/nash
--force --quiet
55 (cd $MNTIMAGE; findall . |
cpio -H newc
--quiet -o) >|
$IMAGE ||
exit 1
57 gzip -9 < $IMAGE >|
$target || rc
=1
59 #rm -rf $MNTIMAGE $IMAGE