Move mount/umount from image to os_type module
[snf-image-creator] / image_creator / os_type / ubuntu.py
index 6a048e5..8bfe04d 100644 (file)
 # interpreted as representing official policies, either expressed
 # or implied, of GRNET S.A.
 
-from image_creator.os_type.linux import Linux, sysprep
+from image_creator.os_type.linux import Linux
 
 
 class Ubuntu(Linux):
+    """OS class for Ubuntu Linux variants"""
     def __init__(self, rootdev, ghandler, output):
         super(Ubuntu, self).__init__(rootdev, ghandler, output)
 
+    def _do_collect_metadata(self):
+        """Collect metadata about the OS"""
+
+        super(Ubuntu, self)._do_collect_metadata()
         apps = self.g.inspect_list_applications(self.root)
         for app in apps:
             if app['app_name'] == 'kubuntu-desktop':