Modified the image name for convertor
authorShuangquan Zhou <shuangquan.zhou@intel.com>
Fri, 19 Aug 2011 07:08:06 +0000 (15:08 +0800)
committerShuangquan Zhou <shuangquan.zhou@intel.com>
Fri, 19 Aug 2011 07:08:06 +0000 (15:08 +0800)
Signed-off-by: Shuangquan Zhou <shuangquan.zhou@intel.com>
mic/imager/baseimager.py
plugins/imager/livecd_plugin.py
plugins/imager/liveusb_plugin.py
plugins/imager/loop_plugin.py
plugins/imager/raw_plugin.py

index 7d596b4..6281a61 100644 (file)
@@ -82,7 +82,7 @@ class BaseImageCreator(object):
         else:
             self.ks = None
             self.repometadata = None
-            self.name = "MeeGo"
+            self.name = "target"
             self.tmpdir = "/var/tmp"
             self.cachedir = "/var/cache"
             self.destdir = "."
index fe0b692..e4612c3 100644 (file)
@@ -162,7 +162,7 @@ class LiveCDPlugin(ImagerPlugin):
                 raise CreatorError("'%s' is not a valid live CD ISO : neither "
                                     "LiveOS/ext3fs.img nor os.img exist" %img)
 
-            rtimage = os.path.join(tempfile.mkdtemp(dir = "/var/tmp", prefix = "tmp"), "meego.img")
+            rtimage = os.path.join(tempfile.mkdtemp(dir = "/var/tmp", prefix = "tmp"), "target.img")
             shutil.copyfile(os_image, rtimage)
         finally:
             imgloop.cleanup()
index 04c4fac..4d602f1 100644 (file)
@@ -163,7 +163,7 @@ class LiveUSBPlugin(ImagerPlugin):
             if not os.path.exists(os_image):
                 raise CreatorError("'%s' is not a valid live CD ISO : neither "
                                    "LiveOS/ext3fs.img nor os.img exist" %img)
-            rtimage = os.path.join(tempfile.mkdtemp(dir = "/var/tmp", prefix = "tmp"), "meego.img")
+            rtimage = os.path.join(tempfile.mkdtemp(dir = "/var/tmp", prefix = "tmp"), "target.img")
             shutil.copyfile(os_image, rtimage)
         finally:
             imgloop.cleanup()
index bfcc42f..dddcb2b 100644 (file)
@@ -88,7 +88,7 @@ class LoopPlugin(ImagerPlugin):
 
     @classmethod
     def do_unpack(cls, srcimg):
-        image = os.path.join(tempfile.mkdtemp(dir = "/var/tmp", prefix = "tmp"), "meego.img")
+        image = os.path.join(tempfile.mkdtemp(dir = "/var/tmp", prefix = "tmp"), "target.img")
         print "Copying file system..."
         shutil.copyfile(srcimg, image)
         return image
index e1c7ac5..6a2ee5f 100644 (file)
@@ -168,7 +168,7 @@ class RawPlugin(ImagerPlugin):
             raise CreatorError("Failed to loopback mount '%s' : %s" %
                                (srcimg, e))
 
-        image = os.path.join(tempfile.mkdtemp(dir = "/var/tmp", prefix = "tmp"), "meego.img")
+        image = os.path.join(tempfile.mkdtemp(dir = "/var/tmp", prefix = "tmp"), "target.img")
         ddcmd = misc.find_binary_path("dd")
         args = [ ddcmd, "if=%s" % srcloop.partitions[0]['device'], "of=%s" % image ]
         print "dd image..."