From f224fa973193d47e1c7ed1a26b0b6ed1ab5d74a7 Mon Sep 17 00:00:00 2001 From: JF Ding Date: Fri, 2 Mar 2012 17:01:42 +0800 Subject: [PATCH] loop taring-to feature support macro replacing @NAME@ can be replaced with acutal image name and a quick solution for the tarball content --- mic/imager/loop.py | 7 +++++++ 1 file changed, 7 insertions(+) mode change 100644 => 100755 mic/imager/loop.py diff --git a/mic/imager/loop.py b/mic/imager/loop.py old mode 100644 new mode 100755 index 8838a35..0da090d --- a/mic/imager/loop.py +++ b/mic/imager/loop.py @@ -34,6 +34,10 @@ def save_mountpoints(dpath, loops): :loops, list of tuple (mp, label, name, size, fstype) """ + # quick dirty fix: odin decline any extra file in tarball + # FIXME: better solution to save this file outside tarball + return None + if not loops: return None @@ -84,7 +88,10 @@ class LoopImageCreator(BaseImageCreator): """ BaseImageCreator.__init__(self, creatoropts, pkgmgr) + self.taring_to = taring_to + if taring_to and '@NAME@' in taring_to: + self.taring_to = taring_to.replace('@NAME@', self.name) self.__fslabel = None self.fslabel = self.name -- 2.7.4