xentaur
diff build-xenomips-image @ 65:cf823d27b029
Nattaur changes
author | nata@nattaur |
---|---|
date | Mon Oct 12 00:12:11 2009 +0300 (2009-10-12) |
parents | 6471afbee150 |
children |
line diff
1.1 --- a/build-xenomips-image Mon Dec 03 08:36:13 2007 +0200 1.2 +++ b/build-xenomips-image Mon Oct 12 00:12:11 2009 +0300 1.3 @@ -1,6 +1,6 @@ 1.4 #!/bin/sh 1.5 1.6 -DYNAMIPS_BUILD=no 1.7 +DYNAMIPS_BUILD=yes 1.8 XENOMIPS_FS_BUILD=yes 1.9 CONFIG_FS_BUILD=yes 1.10 IOS_FS_BUILD=yes 1.11 @@ -11,8 +11,8 @@ 1.12 } 1.13 1.14 XENOMIPS_DIR="files/" 1.15 -XENOMIPS_IMAGES_DIR="/xen/images/" 1.16 -IOS_DIR="ios/" 1.17 +XENOMIPS_IMAGES_DIR="/xentaur/images/" 1.18 +IOS_DIR="/xentaur/ios/" 1.19 SSH_OPEN_KEY=files/id_dsa.pub 1.20 1.21 #Xenomips FS 1.22 @@ -28,15 +28,14 @@ 1.23 IOS_FS_SIZE=2048k 1.24 IOS_FS_NAME=${XENOMIPS_IMAGES_DIR}/xenomips-ios1.img 1.25 1.26 -DEBIAN_MIRROR=ftp://debian.org.ua/debian 1.27 -DISTRO=etch 1.28 -PACKAGES="openssh-server libc6-xen libelf1 libpcap0.8 screen nfs-common quagga tcpdump telnet ntpdate hping3 ntp nmap netcat socat" 1.29 +DEBIAN_MIRROR=http://127.0.0.1:9999/debian 1.30 +DISTRO=lenny 1.31 +PACKAGES="udev openssh-server libc6-xen libelf1 libpcap0.8 screen nfs-common quagga tcpdump telnet ntpdate hping3 ntp nmap netcat socat" 1.32 DYNAMIPS_SOURCES=http://www.ipflow.utc.fr/dynamips/dynamips-0.2.7.tar.gz 1.33 DYNAMIPS_BUILD_DIR=dynamips/ 1.34 PIXEMU_SOURCES=http://xgu.ru/download/pemu_public2007-07-02.tar.bz2 1.35 PIXEMU_BUILD_DIR=dynamips/ 1.36 -KERNEL_VERSION=`uname -r` 1.37 - 1.38 +KERNEL_VERSION="2.6.26-2-xen-686 2.6.18-6-xen-686" #`uname -r` 1.39 1.40 WORK_DIR=${XENOMIPS_FS_NAME%%.img} 1.41 WORK_DIR2=/tmp/xenomips-build 1.42 @@ -121,6 +120,14 @@ 1.43 #iface eth0 inet dhcp 1.44 INTERFACES 1.45 1.46 +cat <<EOF >> /etc/inittab 1.47 +1h:2345:respawn:/sbin/getty 38400 hvc0 1.48 +EOF 1.49 + 1.50 +cat <<EOF >> /etc/modules 1.51 +iptable_nat 1.52 +EOF 1.53 + 1.54 #echo /usr/local/bin/xenomips.sh > /etc/rc.local 1.55 cd /etc/rcS.d; ln -s ../init.d/xenomips-init S35xenomips-init 1.56 rm /etc/rc2.d/S*quagga 1.57 @@ -146,7 +153,7 @@ 1.58 1.59 for kernel_version in ${KERNEL_VERSION} 2.6.18-without-PAE-4-xen-686 1.60 do 1.61 - cp -R /lib/modules/${KERNEL_VERSION} ${WORK_DIR}/lib/modules 1.62 + cp -R /lib/modules/${kernel_version} ${WORK_DIR}/lib/modules 1.63 done 1.64 1.65 cp ${XENOMIPS_DIR}/xenomips-init ${WORK_DIR}/etc/init.d/ 1.66 @@ -157,7 +164,7 @@ 1.67 chmod 600 ${WORK_DIR}/root/.ssh/authorized_keys 1.68 1.69 build_and_install_dynamips 1.70 - build_and_install_pixemu 1.71 + #build_and_install_pixemu 1.72 kill $(lsof +D ${WORK_DIR} | awk '{print $2}' | grep -v PID) 1.73 pkill ntpd 1.74 umount ${WORK_DIR}