All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] a fix to 2067
@ 2012-03-09  7:19 Dexuan Cui
  2012-03-09  7:19 ` [PATCH 1/1] image_types: ensure .rootfs.ext3 is created before vmdk is created Dexuan Cui
  2012-03-13 16:26 ` [PATCH 0/1] a fix to 2067 Saul Wold
  0 siblings, 2 replies; 5+ messages in thread
From: Dexuan Cui @ 2012-03-09  7:19 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 6bd23e0faf329f086bb4885991ce5f5d095dac56:

  adt-installer: Corrected wrong environment file names. (2012-03-08 12:18:52 -0800)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib dcui/fix_2067
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dcui/fix_2067

Dexuan Cui (1):
  image_types: ensure .rootfs.ext3 is created before vmdk is created.

 meta/classes/image_types.bbclass |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

-- 
1.7.6




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/1] image_types: ensure .rootfs.ext3 is created before vmdk is created.
  2012-03-09  7:19 [PATCH 0/1] a fix to 2067 Dexuan Cui
@ 2012-03-09  7:19 ` Dexuan Cui
  2012-03-09  7:30   ` Saul Wold
  2012-03-13 16:26 ` [PATCH 0/1] a fix to 2067 Saul Wold
  1 sibling, 1 reply; 5+ messages in thread
From: Dexuan Cui @ 2012-03-09  7:19 UTC (permalink / raw)
  To: openembedded-core

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 <dexuan.cui@intel.com>
---
 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):
-- 
1.7.6




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] image_types: ensure .rootfs.ext3 is created before vmdk is created.
  2012-03-09  7:19 ` [PATCH 1/1] image_types: ensure .rootfs.ext3 is created before vmdk is created Dexuan Cui
@ 2012-03-09  7:30   ` Saul Wold
  2012-03-09  7:40     ` Cui, Dexuan
  0 siblings, 1 reply; 5+ messages in thread
From: Saul Wold @ 2012-03-09  7:30 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

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<dexuan.cui@intel.com>

Nice Catch!

Acked-by: Saul Wold <sgw@linux.intel.com>

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):



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] image_types: ensure .rootfs.ext3 is created before vmdk is created.
  2012-03-09  7:30   ` Saul Wold
@ 2012-03-09  7:40     ` Cui, Dexuan
  0 siblings, 0 replies; 5+ messages in thread
From: Cui, Dexuan @ 2012-03-09  7:40 UTC (permalink / raw)
  To: Saul Wold, Patches and discussions about the oe-core layer

Saul Wold wrote on 2012-03-09:
> 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<dexuan.cui@intel.com>
> 
> Nice Catch!
> 
> Acked-by: Saul Wold <sgw@linux.intel.com>
BTW, I didn't find the bug in my previous test because I didn't build
From scratch, so actually I already had a file
tmp/deploy/image/self-hosted-image-qemux86.ext3, and according to 
bootimg.bbclass's populate(), we used it -- but we should use a new .ext3 file.

Thanks,
-- Dexuan





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/1] a fix to 2067
  2012-03-09  7:19 [PATCH 0/1] a fix to 2067 Dexuan Cui
  2012-03-09  7:19 ` [PATCH 1/1] image_types: ensure .rootfs.ext3 is created before vmdk is created Dexuan Cui
@ 2012-03-13 16:26 ` Saul Wold
  1 sibling, 0 replies; 5+ messages in thread
From: Saul Wold @ 2012-03-13 16:26 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 03/08/2012 11:19 PM, Dexuan Cui wrote:
> The following changes since commit 6bd23e0faf329f086bb4885991ce5f5d095dac56:
>
>    adt-installer: Corrected wrong environment file names. (2012-03-08 12:18:52 -0800)
>
> are available in the git repository at:
>    git://git.pokylinux.org/poky-contrib dcui/fix_2067
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dcui/fix_2067
>
> Dexuan Cui (1):
>    image_types: ensure .rootfs.ext3 is created before vmdk is created.
>
>   meta/classes/image_types.bbclass |    6 ++++++
>   1 files changed, 6 insertions(+), 0 deletions(-)
>

Merged into OE-Core

Thanks
	Sau!



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-13 16:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-09  7:19 [PATCH 0/1] a fix to 2067 Dexuan Cui
2012-03-09  7:19 ` [PATCH 1/1] image_types: ensure .rootfs.ext3 is created before vmdk is created Dexuan Cui
2012-03-09  7:30   ` Saul Wold
2012-03-09  7:40     ` Cui, Dexuan
2012-03-13 16:26 ` [PATCH 0/1] a fix to 2067 Saul Wold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.