Changes of Revision 27
[-] [+] | Changed | obsworker |
@@ -138,8 +138,10 @@ chmod 755 bs_worker popd - # cleanup stale loops - if [ "$OBS_WORKER_USE_LVM" == "no" ] ; then + # cleanup stale LVs / loops + if [ "$OBS_WORKER_USE_LVM" == "yes" ] ; then + lvremove -f abuild + else for a in `losetup -a|awk -F: '{print $1}'` ; do losetup -d $a ; done fi while test "$NUM" -gt "$I"; do |