Changes of Revision 12
[-] [+] | Changed | obsworker |
@@ -73,7 +73,9 @@ ln -s . XML chmod 755 bs_worker popd - + + # cleanup stale loops + for a in `losetup -a|awk -F: '{print $1}'` ; do losetup -d $a ; done while test "$NUM" -gt "$I"; do if [ "$OBS_WORKER_PORTBASE" -gt 0 ]; then port="--port $((OBS_WORKER_PORTBASE + I))" @@ -97,6 +99,9 @@ # XEN_MEMX=[n] # --- if [ -d $ROOT/root_$I ];then + # extra cleanup + umount $ROOT/root_$I/root + rm -rf $ROOT/root_$I mkdir -p $ROOT/root_$I else |