Last change
on this file since 1773 was 1693, checked in by Bruno Cornec, 17 years ago |
- Remove useless copy from mindi to mondo at end of USB handling
- Fix PB macro vs tools/*2build issue
- make_usb_fs change of interface (doesn't need a parameter)
- Fix USB support in mondo to avoid multiple copies of files
- Use first partiion in mondo for USB device
- Fixes for USB CLI for both mondo/mindi
- Try to add USB support for mondoarchive with new functions
- du => deb for similarity with other distro type under pbconf
- migrate gento build files under pb
- remove now obsolete rpm spec file and gentoo build files from distributions
- Remove DOCDIR usage in mindi + various build fixes
(merge -r1680:1692 $SVN_M/branches/2.2.5)
|
-
Property svn:executable
set to
*
|
File size:
918 bytes
|
Rev | Line | |
---|
[1674] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
[1676] | 3 | (
|
---|
[1674] | 4 | if [ _"$1" == _"" ]; then
|
---|
[1682] | 5 | echo "Syntax: updateqemu VM|all"
|
---|
[1674] | 6 | exit -1
|
---|
| 7 | fi
|
---|
[1682] | 8 | if [ _"$1" == _"all" ]; then
|
---|
| 9 | opt="`grep vmlist ~/.pbrc | grep mondorescue | cut -d= -f2 | sed 's/,/ /g'`"
|
---|
| 10 | opt64="`echo $opt | sed 's/ /_64 /g'`"
|
---|
| 11 | #opt="$opt $opt64"
|
---|
| 12 | opt="$opt64"
|
---|
| 13 | else
|
---|
| 14 | opt="`echo $* | sed 's/,/ /g'`"
|
---|
| 15 | fi
|
---|
| 16 |
|
---|
| 17 | export PBPROJ=pb
|
---|
| 18 | export PBROOT=/users/bruno/pb/svn/0.8.5
|
---|
| 19 |
|
---|
| 20 | for m in $opt; do
|
---|
| 21 | cat /users/bruno/pb/svn/devel/pb/contrib/pbsetupqemu /users/bruno/pb/svn/devel/pb/lib/ProjectBuilder/Distribution.pm > /tmp/pbscript
|
---|
| 22 | echo "Launching script on $m"
|
---|
| 23 | pb -m $m -a root -s /tmp/pbscript script2vm
|
---|
| 24 | pb -m $m build2vm
|
---|
| 25 | echo "Halting $m"
|
---|
| 26 | echo "/sbin/halt -p" > /tmp/pbscript
|
---|
| 27 | pb -m $m -a root -s /tmp/pbscript script2vm
|
---|
[1679] | 28 | sleep 120
|
---|
[1682] | 29 | job=`ps auhxww | grep qemu | grep -Ev 'grep|updateqemu' | awk '{print $2}'`
|
---|
| 30 | if [ _"$job" != _"" ]; then
|
---|
| 31 | echo "Really halting $m"
|
---|
| 32 | kill $job
|
---|
| 33 | fi
|
---|
[1676] | 34 | done
|
---|
[1682] | 35 | ) 2>&1 | tee /tmp/updateqemu.log
|
---|
Note:
See
TracBrowser
for help on using the repository browser.