Added extra error handling in case filesystem wasn't mounted porperly

This commit is contained in:
Anton Hvornum 2019-11-19 01:05:04 +00:00
parent 8a5266d087
commit 86847d6dc1
1 changed files with 1 additions and 0 deletions

View File

@ -612,6 +612,7 @@ def human_disk_info(drive):
}
def close_disks():
o = simple_command('/usr/bin/umount -R /mnt/boot')
o = simple_command('/usr/bin/umount -R /mnt')
o = simple_command('/usr/bin/cryptsetup close /dev/mapper/luksdev')