Revision 71b0ab28 image_creator/dialog_wizard.py

b/image_creator/dialog_wizard.py
266 266
        out.clear()
267 267

  
268 268
        #Sysprep
269
        image.mount(False)
270
        err_msg = "Unable to execute the system preparation tasks."
271
        if not image.mounted:
272
            raise FatalError("%s Couldn't mount the media." % err_msg)
273
        elif image.mounted_ro:
274
            raise FatalError("%s Couldn't mount the media read-write."
275
                             % err_msg)
276 269
        image.os.do_sysprep()
277 270
        metadata = image.os.meta
278
        image.umount()
279 271

  
280 272
        #Shrink
281 273
        size = image.shrink()

Also available in: Unified diff