]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: Update/rename configure-related code
authorTom Zanussi <tom.zanussi@linux.intel.com>
Fri, 8 Aug 2014 18:43:45 +0000 (13:43 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Aug 2014 09:52:18 +0000 (10:52 +0100)
The wic code inherited a basic image-creation flow based on
image-configuration, but wic doesn't actually configure anything, so
rename parts of the code dealing with configuration to something more
appropriate.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
scripts/lib/mic/imager/direct.py
scripts/lib/mic/plugins/imager/direct_plugin.py

index 8d7b6ee80492cc64f91d26ad7c3ae1b3600ac9ba..17bfd01566932e664eb40039ba642b6392b56076 100644 (file)
@@ -284,12 +284,13 @@ class DirectImageCreator(BaseImageCreator):
                         % (disk_name, full_path, disk['min_size']))
             self.__image.assemble(full_path)
 
-    def configure(self):
+    def finalize(self):
         """
-        Configure the system image according to kickstart.
+        Finalize the disk image.
 
-        For now, it just prepares the image to be bootable by e.g.
+        For example, prepare the image to be bootable by e.g.
         creating and installing a bootloader configuration.
+
         """
         source_plugin = self.get_default_source_plugin()
         if source_plugin:
index 2cbd5d11fcc0f8c12636870a4484d0a837a132fe..ff30f09c3bf2f3503b85b8bfb3f20bdad4b9c846 100644 (file)
@@ -93,7 +93,7 @@ class DirectPlugin(ImagerPlugin):
         try:
             creator.create()
             creator.assemble()
-            creator.configure()
+            creator.finalize()
             creator.print_outimage_info()
 
         except errors.CreatorError: