Changeset 600 in MondoRescue for trunk/tools/build2qemu


Ignore:
Timestamp:
May 31, 2006, 12:22:14 AM (14 years ago)
Author:
bcornec
Message:

merge -r 591:599 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/build2qemu

    r592 r600  
    3939if [ _"$1" == _"" ]; then
    4040    export VMS=`cat ${TOOLHOME}/DISTROS`
     41    single=0
    4142else
    42     export VMS="$1"
     43    export VMS="$*"
     44    single=1
    4345fi
    4446
     
    5254export TOOLHOME=$TOOLHOME
    5355
    54 $TOOLHOME/build2pkg $LAST
    55 $TOOLHOME/pkg2ftp
     56$TOOLHOME/build2pkg $LAST < /dev/null
     57$TOOLHOME/pkg2ftp $LAST
    5658EOF
    5759chmod 755 $TMP/mkmondo
    5860
    59 $TOOLHOME/files2ftp
     61if [ $single -eq 0 ]; then
     62    $TOOLHOME/file2ftp
     63fi
    6064cd $TOOLHOME/..
    6165tar cfz $TMP/mkmondo.tar.gz $TOOLHOME $TMP/mkmondo $TOPDIR/${VER}-$TAG
     
    6872            exit -1
    6973    fi
     74    export sp=2222
    7075    ps auxww | grep qemu | grep -v grep | grep -q /users/qemu/$m.qemu
    71     export sp=2222
    7276    if [ $? -ne 0 ]; then
    7377        # Virtual machine alreday started
     
    7781    fi
    7882    scp -P $sp $TMP/mkmondo.tar.gz bruno@localhost:
    79     ssh -p $sp bruno@localhost "cd / ; tar xfz ~bruno/mkmondo.tar.gz ; $TMP/mkmondo " | tee $TMP/mkvm.log
     83    rdate=`date "+%m%d%H%M"`
     84    ssh -p $sp root@localhost "date $rdate"
     85    ssh -p $sp bruno@localhost "cd / ; rm -rf ~bruno/mondo ~bruno/RPMS/BUILD/* ~bruno/RPMS/tmp/* /tmp/* ; tar xfz ~bruno/mkmondo.tar.gz ; $TMP/mkmondo " | tee $TMP/mkvm.log
    8086    #ssh -p $sp bruno@localhost "cd / ; tar xfz ~bruno/mkmondo.tar.gz ; $TMP/mkmondo ; rm -f $TMP" | tee $TMP/mkvm.log
    8187    if [ $vmp -eq 1 ]; then
    8288        ssh -p $sp root@localhost "halt -p"
    8389        sleep 300
    84         proces=`ps auxww | grep qemu | grep -v grep | grep -q /users/qemu/$m.qemu | awk '{print $2}'`
     90        proces=`ps auxww | grep qemu | grep -v grep | grep /users/qemu/$m.qemu | awk '{print $2}'`
    8591        if [ "$proces" != "" ]; then
    8692            kill $proces
Note: See TracChangeset for help on using the changeset viewer.