Ignore:
Timestamp:
May 24, 2006, 12:20:19 AM (14 years ago)
Author:
bcornec
Message:

gentoo build continued
mindi bug found due to a previous bug corrected (5.6 MB disks generated systematically):

  • when a disk less than 2.8 MB can be built, not enough modules are put on it to support SCSI cds (use of FLOPPY_MODS only). I added most CDROMs modules in order to support them.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/build2qemu

    r556 r572  
    66#
    77
    8 if [ _"$1" == _"" ]; then
    9     echo "Syntax: build2qemu [version-tag [vm1]..|vmx]] )"
    10     exit -1
     8#if [ _"$1" == _"" ]; then
     9    #echo "Syntax: build2qemu [version-tag [vm1]..|vmx]] )"
     10    #exit -1
     11#fi
     12
     13# Syntax: build2qemu [version-tag [vm1]..|vmx]]
     14
     15umask 022
     16dname=`dirname $0`
     17prem=`echo $dname |cut -c1`
     18if [ ${prem} == "/" ]; then
     19    export TOOLHOME=$dname
     20else
     21    export TOOLHOME=${PWD}/$dname
    1122fi
     23
    1224
    1325. $TOOLHOME/common-env
     
    3143fi
    3244
    33 
     45mkdir -p $TMP
    3446cat > $TMP/mkmondo << EOF
    3547#!/bin/bash
     
    4052export TOOLHOME=$TOOLHOME
    4153
    42 \$TOOLHOME/build2pkg
    43 \$TOOLHOME/mkdeliv
     54$TOOLHOME/build2pkg $LAST
     55#$TOOLHOME/mkdeliv
    4456EOF
    4557chmod 755 $TMP/mkmondo
    4658
    4759cd $TOOLHOME/..
    48 tar cvfz $TMP/mkmondo.tar.gz $TOOLHOME/tools $TMP/mkmondo $TOPDIR/${VER}-$TAG
     60tar cfz $TMP/mkmondo.tar.gz $TOOLHOME $TMP/mkmondo $TOPDIR/${VER}-$TAG
    4961
    5062for m in $VMS; do
     
    5264    if [ ! -f /users/qemu/$m.qemu ]; then
    5365            echo "VM unaccessible. Verify NFS mount"
     66            rm -rf $TMP
    5467            exit -1
    5568    fi
    5669    ps auxww | grep qemu | grep -v grep | grep -q /users/qemu/$m.qemu
     70    export sp=2222
    5771    if [ $? -ne 0 ]; then
    5872        # Virtual machine alreday started
     
    6276    fi
    6377    scp -P $sp $TMP/mkmondo.tar.gz bruno@localhost:
    64     ssh -p $sp bruno@localhost "cd / ; tar xvfz $TMP/mkmondo.tar.gz ; $TMP/mkmondo" | tee $TMP/mkvm.log
     78    ssh -p $sp bruno@localhost "cd / ; tar xfz ~bruno/mkmondo.tar.gz ; $TMP/mkmondo " | tee $TMP/mkvm.log
     79    #ssh -p $sp bruno@localhost "cd / ; tar xfz ~bruno/mkmondo.tar.gz ; $TMP/mkmondo ; rm -f $TMP" | tee $TMP/mkvm.log
    6580    if [ $vmp -eq 1 ]; then
    6681        ssh -p $sp root@localhost "halt -p"
     
    7287    fi
    7388done
     89
     90# Should be removed at the end
     91rm -rf $TMP
Note: See TracChangeset for help on using the changeset viewer.