calamari_setup.py: tear down mounted ISO

Fixes: #11457
Signed-off-by: Dan Mick <dan.mick@redhat.com>
This commit is contained in:
Dan Mick 2015-06-16 15:21:47 -07:00
parent e2c6341a00
commit 8defa73000

View File

@ -259,6 +259,8 @@ def calamari_install(config, cal_svr):
yield yield
finally: finally:
log.info('Cleaning up after Calamari installation') log.info('Cleaning up after Calamari installation')
if icetype == 'iso':
cal_svr.run(['sudo', 'umount', mountpoint])
if delete_iceball: if delete_iceball:
os.unlink(iceball_file) os.unlink(iceball_file)