Revision e482b7f9 image_creator/os_type/__init__.py

b/image_creator/os_type/__init__.py
247 247
    def do_sysprep(self):
248 248
        """Prepare system for image creation."""
249 249

  
250
        self.out.output('Preparing system for image creation:')
251

  
252
        if hasattr(self.image, "unsupported"):
253
            self.out.warn(
254
                "System preparation is disabled for unsupported media")
255
            return
256

  
250 257
        try:
251 258
            if not self.mount(readonly=False):
252 259
                raise FatalError("Unable to mount the media read-write")
253 260

  
254
            self.out.output('Preparing system for image creation:')
255

  
256 261
            enabled = [task for task in self.list_syspreps() if task.enabled]
257 262

  
258 263
            size = len(enabled)

Also available in: Unified diff