Ignore:
Timestamp:
02/13/14 12:05:37 (11 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
4f9718b, 026e89f
Parents:
158b662
Message:

Update pbi-manager, add some fixes / checking when deleting
a PBI container

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pbi-manager/pbime/pbimount

    r60638d87 r9ee87dc  
    9797 
    9898   is_mounted "${pDir}/virtbase/dev" || (mount -t devfs devfs "${pDir}/virtbase/dev" ; $MNTSLEEP ) 
    99    is_mounted "${pDir}/virtbase/dev/fd" || (mount -t fdescfs fdesc "${pDir}/virtbase/dev/fd" ; $MNTSLEEP ) 
    10099   is_mounted "${pDir}/virtbase/usr/local" || ($NULLFS ${1}/local "${pDir}/virtbase/usr/local" ; $MNTSLEEP ) 
    101100   is_mounted "${pDir}/virtbase/var/run" || ($NULLFS ${pDir}/run "${pDir}/virtbase/var/run" ; $MNTSLEEP ) 
     
    157156 
    158157umount_pbidir() { 
    159    for i in `mount | grep "on ${pDir}/virtbase/usr/local" | tail -r | awk '{print $3}'` 
     158   for i in `mount | grep "on ${pDir}/virtbase" | tail -r | awk '{print $3}'` 
    160159   do 
    161160     #echo "Unmounting ${i}" 
    162      umount -f ${i} 
    163      sleep 0.5 
    164    done 
    165    for i in `mount | grep "on ${pDir}/virtbase/compat/linux" | tail -r | awk '{print $3}'` 
    166    do 
    167      #echo "Unmounting ${i}" 
    168      umount -f ${i} 
     161     umount ${i} 
    169162     sleep 0.5 
    170163   done 
Note: See TracChangeset for help on using the changeset viewer.