Changeset 6841


Ignore:
Timestamp:
Feb 16, 2018, 1:12:49 PM (18 months ago)
Author:
kbut
Message:

Check if folder to delete is mounted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lmd/trunk/fuentes/lmd-server.install/usr/share/n4d/python-plugins/LmdImageManager.py

    r5552 r6841  
    293293                                        ret=subprocess.check_output(["sudo","umount","-l",chroot_dir+"/etc/nsswitch.conf"])
    294294                               
     295                                if (subprocess.check_output(["mount | grep ' "+chroot_dir+" ' | wc -l"], shell=True))!='0\n':
     296                                        ret=subprocess.check_output(["sudo","umount","-l",chroot_dir])
    295297                               
    296298                                return {'status': True, 'msg':'[LmdImageManager] All is umounted'}
Note: See TracChangeset for help on using the changeset viewer.