Commits

Rodrigo Bistolfi committed 6351145

Stop umounting media in installmedia.py

Comments (0)

Files changed (1)

vinstall/backend/installmedia.py

             if needs_umount:
                 cdrom.umount()
         for partition in partitions:
-            needs_umount = False
             if not partition.is_mounted():
                 partition.mount(partition.mountpoint)
-                needs_umount = True
             if is_install_media(partition.mountpoint):
                 config = parse_config(partition.mountpoint)
                 yield cls(partition.mountpoint, config)
                             config = parse_config(iso_mountpoint)
                             yield cls(isopath, config)
                         umount(iso_mountpoint)
-            if needs_umount:
-                partition.umount()
 
     def __init__(self, path, config):
         """Expose install media base dir and the config object