Skip to content

Commit

Permalink
Fix for inaccurate detection of already-mounted disk images
Browse files Browse the repository at this point in the history
  • Loading branch information
gregneagle committed May 9, 2018
1 parent 6cf7138 commit 40d1a1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/client/munkilib/dmgutils.py
Expand Up @@ -112,8 +112,10 @@ def diskImageIsMounted(dmgpath):
if 'image-path' in imageProperties:
imagepath = imageProperties['image-path']
if imagepath == dmgpath:
isMounted = True
break
for entity in imageProperties.get('system-entities', []):
if entity.get('mount-point'):
isMounted = True
break
return isMounted


Expand Down

0 comments on commit 40d1a1a

Please sign in to comment.