Patchwork [2/2] Incremental image generation(Add config sample)

login
register
mail settings
Submitter Robert Yang
Date Dec. 29, 2011, 7 a.m.
Message ID <b77e4e9e630e0ae691e6f524c356745e0c42ffb2.1325141432.git.liezhi.yang@windriver.com>
Download mbox | patch
Permalink /patch/17765/
State New
Headers show

Comments

Robert Yang - Dec. 29, 2011, 7 a.m.
Add the config sample for incremental image generation to
meta-yocto/conf/local.conf.sample

[YOCTO #1651]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta-yocto/conf/local.conf.sample |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
Saul Wold - Dec. 29, 2011, 5:33 p.m.
On 12/28/2011 11:00 PM, Robert Yang wrote:
> Add the config sample for incremental image generation to
> meta-yocto/conf/local.conf.sample
>
> [YOCTO #1651]
>
> Signed-off-by: Robert Yang<liezhi.yang@windriver.com>
> ---
>   meta-yocto/conf/local.conf.sample |    7 +++++++
>   1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/meta-yocto/conf/local.conf.sample b/meta-yocto/conf/local.conf.sample
> index ca8636c..e33ffd9 100644
> --- a/meta-yocto/conf/local.conf.sample
> +++ b/meta-yocto/conf/local.conf.sample
> @@ -222,3 +222,10 @@ PATCHRESOLVE = "noop"
>   # track the version of this file when it was generated. This can safely be ignored if
>   # this doesn't mean anything to you.
>   CONF_VERSION = "1"
> +
> +# Incremental image generation(only for rpm based rootfs currently), the rootfs
> +# would be totally removed and re-created in the second generation by default,
> +# but with INC_IMAGE_GEN = "1", the rootfs would be kept, and will do
> +# update(remove/add some pkgs) on it.
> +# NOTE: This is not suggested when you want to create a productive rootfs
> +#INC_IMAGE_GEN = "1"

This should probably belong in the local.conf.sample.extended file.

Sau!
Robert Yang - Dec. 30, 2011, 1:21 a.m.
On 12/30/2011 01:33 AM, Saul Wold wrote:
> On 12/28/2011 11:00 PM, Robert Yang wrote:
>> Add the config sample for incremental image generation to
>> meta-yocto/conf/local.conf.sample
>>
>> [YOCTO #1651]
>>
>> Signed-off-by: Robert Yang<liezhi.yang@windriver.com>
>> ---
>> meta-yocto/conf/local.conf.sample | 7 +++++++
>> 1 files changed, 7 insertions(+), 0 deletions(-)
>>
>> diff --git a/meta-yocto/conf/local.conf.sample
>> b/meta-yocto/conf/local.conf.sample
>> index ca8636c..e33ffd9 100644
>> --- a/meta-yocto/conf/local.conf.sample
>> +++ b/meta-yocto/conf/local.conf.sample
>> @@ -222,3 +222,10 @@ PATCHRESOLVE = "noop"
>> # track the version of this file when it was generated. This can safely be
>> ignored if
>> # this doesn't mean anything to you.
>> CONF_VERSION = "1"
>> +
>> +# Incremental image generation(only for rpm based rootfs currently), the rootfs
>> +# would be totally removed and re-created in the second generation by default,
>> +# but with INC_IMAGE_GEN = "1", the rootfs would be kept, and will do
>> +# update(remove/add some pkgs) on it.
>> +# NOTE: This is not suggested when you want to create a productive rootfs
>> +#INC_IMAGE_GEN = "1"
>
> This should probably belong in the local.conf.sample.extended file.
>

Thanks, Saul, I will wait for other's comment and send a V2 by the end of
tomorrow.

// Robert

> Sau!
>

Patch

diff --git a/meta-yocto/conf/local.conf.sample b/meta-yocto/conf/local.conf.sample
index ca8636c..e33ffd9 100644
--- a/meta-yocto/conf/local.conf.sample
+++ b/meta-yocto/conf/local.conf.sample
@@ -222,3 +222,10 @@  PATCHRESOLVE = "noop"
 # track the version of this file when it was generated. This can safely be ignored if
 # this doesn't mean anything to you.
 CONF_VERSION = "1"
+
+# Incremental image generation(only for rpm based rootfs currently), the rootfs
+# would be totally removed and re-created in the second generation by default,
+# but with INC_IMAGE_GEN = "1", the rootfs would be kept, and will do
+# update(remove/add some pkgs) on it.
+# NOTE: This is not suggested when you want to create a productive rootfs
+#INC_IMAGE_GEN = "1"