Changeset 1043 in MondoRescue for trunk/tools/build2qemu
- Timestamp:
- Jan 8, 2007, 11:31:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/build2qemu
r932 r1043 6 6 # 7 7 8 #if [ _"$1" = =_"" ]; then8 #if [ _"$1" = _"" ]; then 9 9 #echo "Syntax: build2qemu [version-tag [vm1]..|vmx]] )" 10 10 #exit -1 11 11 #fi 12 12 13 # Syntax: build2qemu [version-tag [ vm1]..|vmx]]13 # Syntax: build2qemu [version-tag [--pkg "pkg1...pkgn"] [vm1]..|vmx]] 14 14 15 15 ( 16 16 dname=`dirname $0` 17 17 prem=`echo $dname |cut -c1` 18 if [ ${prem} =="/" ]; then18 if [ _${prem} = _"/" ]; then 19 19 export TOOLHOME=$dname 20 20 else … … 36 36 echo "Working on ${VER}-$TAG" 37 37 38 if [ _"$1" == _"" ]; then 38 if [ _"$1" = _"--pkg" ]; then 39 shift 40 c=$1 41 shift 42 fi 43 44 if [ _"$1" = _"" ]; then 39 45 export VMS=`cat ${TOOLHOME}/DISTROS` 40 46 single=0 … … 52 58 export TOOLHOME=$TOOLHOME 53 59 54 $TOOLHOME/build2pkg $LAST < /dev/null55 $TOOLHOME/pkg2ftp $LAST 60 $TOOLHOME/build2pkg $LAST $c < /dev/null 61 $TOOLHOME/pkg2ftp $LAST $c 56 62 EOF 57 63 chmod 755 $MONDOTMP/mkmondo … … 68 74 69 75 for m in $VMS; do 76 echo "Working on $m" 70 77 vmp=0 71 78 if [ ! -f /users/qemu/$m.qemu ]; then … … 86 93 scp -P $sp $MONDOTMP/mkmondo.tar.gz ~/.rpmmacros ~/.rpmrc bruno@localhost: 87 94 rdate=`date "+%m%d%H%M"` 88 ssh - p $sp root@localhost "date $rdate"89 ssh - p $sp bruno@localhost "cd / ; rm -rf ~bruno/mondo ~bruno/RPMS/BUILD/* ~bruno/RPMS/tmp/* /tmp/* ; tar xfz ~bruno/mkmondo.tar.gz ; $MONDOTMP/mkmondo " | tee $MONDOTMP/mkvm.log95 ssh -q -p $sp root@localhost "date $rdate" 96 ssh -q -p $sp bruno@localhost "cd / ; rm -rf ~bruno/mondo ~bruno/RPMS/BUILD/* ~bruno/RPMS/tmp/* /tmp/* ; tar xfz ~bruno/mkmondo.tar.gz ; $MONDOTMP/mkmondo " | tee $MONDOTMP/mkvm.log 90 97 if [ $vmp -eq 1 ]; then 91 ssh - p $sp root@localhost "halt -p"98 ssh -q -p $sp root@localhost "halt -p" 92 99 sleep 300 93 100 proces=`ps auxww | grep qemu | grep -v grep | grep /users/qemu/$m.qemu | awk '{print $2}'`
Note:
See TracChangeset
for help on using the changeset viewer.