correct apic probe of 2.6.32.41 linux kernel
[linux-based-stubdoms.git] / mk-ramdisk-ioemu
blob09d600d81f4ff829c60c85c7de5840b4c1d69e16
1 #!/bin/bash --norc
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
12 inst /usr/sbin/brctl "$MNTIMAGE" /bin/brctl
13 inst /sbin/ifconfig "$MNTIMAGE" /bin/ifconfig
14 inst $1/udevd "$MNTIMAGE" /bin/udevd
15 inst $1/udevstart "$MNTIMAGE" /bin/udevstart
17 #add ioemu-stubdom code here
18 emit "echo Starting udevd"
19 emit "/bin/udevd --daemon"
20 emit "/bin/udevstart"
22 emit "echo Running qemu"
23 emit "/bin/qemu"
25 emit "sleep -1"
27 chmod 755 $RCFILE
29 mkdir -p $MNTIMAGE/etc/udev
30 cp -ar /etc/udev/udev.conf $MNTIMAGE/etc/udev/udev.conf
32 findall() {
33 echo nash-find "$@" | /sbin/nash --force --quiet
36 (cd $MNTIMAGE; findall . | cpio -H newc --quiet -o) >| $IMAGE || exit 1
38 gzip -9 < $IMAGE >| $target || rc=1
40 #rm -rf $MNTIMAGE $IMAGE
41 rm -rf $IMAGE
43 exit $rc