Skip to content

Commit

Permalink
don't raise exception on failed umount on finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
alonswartz committed May 5, 2015
1 parent c07fbe5 commit eb65616
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion di-live.d/90finalize
Expand Up @@ -15,7 +15,10 @@ def deep_umount(target):

paths.sort(reverse=True)
for path in paths:
system("umount -f %s" % path)
try:
system("umount -f %s" % path)
except:
pass

def reboot():
template = 'di-live/reboot_now'
Expand Down

0 comments on commit eb65616

Please sign in to comment.