From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com ([134.134.136.24]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1S5uQz-0008JM-PJ for openembedded-core@lists.openembedded.org; Fri, 09 Mar 2012 08:40:17 +0100 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 08 Mar 2012 23:31:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,352,1309762800"; d="scan'208";a="116137302" Received: from unknown (HELO [10.255.15.127]) ([10.255.15.127]) by orsmga001.jf.intel.com with ESMTP; 08 Mar 2012 23:30:14 -0800 Message-ID: <4F59B186.6090009@linux.intel.com> Date: Thu, 08 Mar 2012 23:30:14 -0800 From: Saul Wold User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 MIME-Version: 1.0 To: Patches and discussions about the oe-core layer References: <6d24f6bd75d4c9da78368d3cae9dbbc8a470b2b6.1331277565.git.dexuan.cui@intel.com> In-Reply-To: <6d24f6bd75d4c9da78368d3cae9dbbc8a470b2b6.1331277565.git.dexuan.cui@intel.com> Subject: Re: [PATCH 1/1] image_types: ensure .rootfs.ext3 is created before vmdk is created. X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2012 07:40:18 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 03/08/2012 11:19 PM, Dexuan Cui wrote: > In the case of self-hosted-image.bb, IMAGE_FSTYPES = "vmdk", so the > variables alltypes and subimages don't contain ext3, and .rootfs.ext3 > won't be created, and finally the generated .hddimg and .vmdk don't have > an actual rootfs -- the size of the .vmdk file is only about 9MB. > > [YOCTO #2067] > > Signed-off-by: Dexuan Cui Nice Catch! Acked-by: Saul Wold Sau! > --- > meta/classes/image_types.bbclass | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass > index 8b82018..e92f519 100644 > --- a/meta/classes/image_types.bbclass > +++ b/meta/classes/image_types.bbclass > @@ -26,13 +26,19 @@ def get_imagecmds(d): > # Live and VMDK images will be processed via inheriting > # bbclass and does not get processed here. > # vmdk depend on live images also depend on ext3 so ensure its present > + # Note: we need to ensure ext3 is in alltypes, otherwise, subimages may > + # not contain ext3 and the .rootfs.ext3 file won't be created. > if "vmdk" in types: > if "ext3" not in types: > types.append("ext3") > + if "ext3" not in alltypes: > + alltypes.append("ext3") > types.remove("vmdk") > if "live" in types: > if "ext3" not in types: > types.append("ext3") > + if "ext3" not in alltypes: > + alltypes.append("ext3") > types.remove("live") > > if d.getVar('IMAGE_LINK_NAME', True):