diff mbox series

[isar-cip-core,RFC,v1,1/6] conf: Use bookworm backports for enabling delta handler in swupdate

Message ID 20240307074612.1996609-2-Adithya.Balakumar@toshiba-tsip.com (mailing list archive)
State Changes Requested
Headers show
Series Integrate Delta Update with rdiff_image and delta handler | expand

Commit Message

Adithya Balakumar March 7, 2024, 7:46 a.m. UTC
Delta handler requires zchunk > 1.3, but the required version is only
available in bookworm backports

Signed-off-by: Adithya Balakumar <Adithya.Balakumar@toshiba-tsip.com>
---
 conf/distro/cip-core-bookworm.conf                   |  3 +++
 conf/distro/debian-bookworm-backports.list           |  1 +
 .../preferences.swupdate-bookworm-backports.conf     | 12 ++++++++++++
 3 files changed, 16 insertions(+)
 create mode 100644 conf/distro/debian-bookworm-backports.list
 create mode 100644 conf/distro/preferences.swupdate-bookworm-backports.conf

Comments

MOESSBAUER, Felix March 8, 2024, 10:28 a.m. UTC | #1
On Thu, 2024-03-07 at 13:16 +0530, Adithya Balakumar wrote:
> Delta handler requires zchunk > 1.3, but the required version is only
> available in bookworm backports
> 
> Signed-off-by: Adithya Balakumar <Adithya.Balakumar@toshiba-tsip.com>
> ---
>  conf/distro/cip-core-bookworm.conf                   |  3 +++
>  conf/distro/debian-bookworm-backports.list           |  1 +
>  .../preferences.swupdate-bookworm-backports.conf     | 12
> ++++++++++++
>  3 files changed, 16 insertions(+)
>  create mode 100644 conf/distro/debian-bookworm-backports.list
>  create mode 100644 conf/distro/preferences.swupdate-bookworm-
> backports.conf
> 
> diff --git a/conf/distro/cip-core-bookworm.conf b/conf/distro/cip-
> core-bookworm.conf
> index 9bcf559..e0a4f7f 100644
> --- a/conf/distro/cip-core-bookworm.conf
> +++ b/conf/distro/cip-core-bookworm.conf
> @@ -12,6 +12,9 @@
>  require conf/distro/debian-bookworm.conf
>  require cip-core-common.inc
>  
> +DISTRO_APT_SOURCES:append:swupdate = " conf/distro/debian-bookworm-
> backports.list"
> +DISTRO_APT_PREFERENCES:append:swupdate = "
> conf/distro/preferences.swupdate-bookworm-backports.conf"
> +
>  PREFERRED_VERSION_swupdate ?= "2023.05%"
>  PREFERRED_VERSION_linux-cip ?= "6.1.%"
>  PREFERRED_VERSION_linux-cip-rt ?= "6.1.%"
> diff --git a/conf/distro/debian-bookworm-backports.list
> b/conf/distro/debian-bookworm-backports.list
> new file mode 100644
> index 0000000..c4873b4
> --- /dev/null
> +++ b/conf/distro/debian-bookworm-backports.list
> @@ -0,0 +1 @@
> +deb http://deb.debian.org/debian bookworm-backports main contrib
> non-free
> diff --git a/conf/distro/preferences.swupdate-bookworm-backports.conf
> b/conf/distro/preferences.swupdate-bookworm-backports.conf
> new file mode 100644
> index 0000000..b6efffc
> --- /dev/null
> +++ b/conf/distro/preferences.swupdate-bookworm-backports.conf
> @@ -0,0 +1,12 @@
> +Package: libzck-dev
> +Pin: release n=bookworm-backports
> +Pin-Priority: 801
> +
> +Package: libzck1
> +Pin: release n=bookworm-backports
> +Pin-Priority: 801

Hi!

Just put all packages in one line, e.g.

Package: libzck-dev libzck1 zchunk

Felix

> +
> +Package: zchunk
> +Pin: release n=bookworm-backports
> +Pin-Priority: 801
> +
Jan Kiszka March 8, 2024, 11:35 a.m. UTC | #2
On 07.03.24 08:46, Adithya Balakumar wrote:
> Delta handler requires zchunk > 1.3, but the required version is only
> available in bookworm backports
> 
> Signed-off-by: Adithya Balakumar <Adithya.Balakumar@toshiba-tsip.com>
> ---
>  conf/distro/cip-core-bookworm.conf                   |  3 +++
>  conf/distro/debian-bookworm-backports.list           |  1 +
>  .../preferences.swupdate-bookworm-backports.conf     | 12 ++++++++++++
>  3 files changed, 16 insertions(+)
>  create mode 100644 conf/distro/debian-bookworm-backports.list
>  create mode 100644 conf/distro/preferences.swupdate-bookworm-backports.conf
> 
> diff --git a/conf/distro/cip-core-bookworm.conf b/conf/distro/cip-core-bookworm.conf
> index 9bcf559..e0a4f7f 100644
> --- a/conf/distro/cip-core-bookworm.conf
> +++ b/conf/distro/cip-core-bookworm.conf
> @@ -12,6 +12,9 @@
>  require conf/distro/debian-bookworm.conf
>  require cip-core-common.inc
>  
> +DISTRO_APT_SOURCES:append:swupdate = " conf/distro/debian-bookworm-backports.list"
> +DISTRO_APT_PREFERENCES:append:swupdate = " conf/distro/preferences.swupdate-bookworm-backports.conf"
> +
>  PREFERRED_VERSION_swupdate ?= "2023.05%"
>  PREFERRED_VERSION_linux-cip ?= "6.1.%"
>  PREFERRED_VERSION_linux-cip-rt ?= "6.1.%"
> diff --git a/conf/distro/debian-bookworm-backports.list b/conf/distro/debian-bookworm-backports.list
> new file mode 100644
> index 0000000..c4873b4
> --- /dev/null
> +++ b/conf/distro/debian-bookworm-backports.list
> @@ -0,0 +1 @@
> +deb http://deb.debian.org/debian bookworm-backports main contrib non-free
> diff --git a/conf/distro/preferences.swupdate-bookworm-backports.conf b/conf/distro/preferences.swupdate-bookworm-backports.conf
> new file mode 100644
> index 0000000..b6efffc
> --- /dev/null
> +++ b/conf/distro/preferences.swupdate-bookworm-backports.conf
> @@ -0,0 +1,12 @@
> +Package: libzck-dev
> +Pin: release n=bookworm-backports
> +Pin-Priority: 801
> +
> +Package: libzck1
> +Pin: release n=bookworm-backports
> +Pin-Priority: 801
> +
> +Package: zchunk
> +Pin: release n=bookworm-backports
> +Pin-Priority: 801
> +

Backports are bad when it comes to use in production (they receive
best-effort updates only). It this the only options?

Jan
Gylstorff Quirin March 14, 2024, 7:55 a.m. UTC | #3
On 3/8/24 12:35 PM, Jan Kiszka via lists.cip-project.org wrote:
> On 07.03.24 08:46, Adithya Balakumar wrote:
>> Delta handler requires zchunk > 1.3, but the required version is only
>> available in bookworm backports
>>
>> Signed-off-by: Adithya Balakumar <Adithya.Balakumar@toshiba-tsip.com>
>> ---
>>   conf/distro/cip-core-bookworm.conf                   |  3 +++
>>   conf/distro/debian-bookworm-backports.list           |  1 +
>>   .../preferences.swupdate-bookworm-backports.conf     | 12 ++++++++++++
>>   3 files changed, 16 insertions(+)
>>   create mode 100644 conf/distro/debian-bookworm-backports.list
>>   create mode 100644 conf/distro/preferences.swupdate-bookworm-backports.conf
>>
>> diff --git a/conf/distro/cip-core-bookworm.conf b/conf/distro/cip-core-bookworm.conf
>> index 9bcf559..e0a4f7f 100644
>> --- a/conf/distro/cip-core-bookworm.conf
>> +++ b/conf/distro/cip-core-bookworm.conf
>> @@ -12,6 +12,9 @@
>>   require conf/distro/debian-bookworm.conf
>>   require cip-core-common.inc
>>   
>> +DISTRO_APT_SOURCES:append:swupdate = " conf/distro/debian-bookworm-backports.list"
>> +DISTRO_APT_PREFERENCES:append:swupdate = " conf/distro/preferences.swupdate-bookworm-backports.conf"
>> +
>>   PREFERRED_VERSION_swupdate ?= "2023.05%"
>>   PREFERRED_VERSION_linux-cip ?= "6.1.%"
>>   PREFERRED_VERSION_linux-cip-rt ?= "6.1.%"
>> diff --git a/conf/distro/debian-bookworm-backports.list b/conf/distro/debian-bookworm-backports.list
>> new file mode 100644
>> index 0000000..c4873b4
>> --- /dev/null
>> +++ b/conf/distro/debian-bookworm-backports.list
>> @@ -0,0 +1 @@
>> +deb http://deb.debian.org/debian bookworm-backports main contrib non-free
>> diff --git a/conf/distro/preferences.swupdate-bookworm-backports.conf b/conf/distro/preferences.swupdate-bookworm-backports.conf
>> new file mode 100644
>> index 0000000..b6efffc
>> --- /dev/null
>> +++ b/conf/distro/preferences.swupdate-bookworm-backports.conf
>> @@ -0,0 +1,12 @@
>> +Package: libzck-dev
>> +Pin: release n=bookworm-backports
>> +Pin-Priority: 801
>> +
>> +Package: libzck1
>> +Pin: release n=bookworm-backports
>> +Pin-Priority: 801
>> +
>> +Package: zchunk
>> +Pin: release n=bookworm-backports
>> +Pin-Priority: 801
>> +
> 
> Backports are bad when it comes to use in production (they receive
> best-effort updates only). It this the only options?
> 

As we need only backports for zchunk i would propose that we support 
only rdiff based image for distros <= bookworm. The zchunk support can
be activiated for trixie and later.

Quirin

> Jan
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#15264): https://lists.cip-project.org/g/cip-dev/message/15264
> Mute This Topic: https://lists.cip-project.org/mt/104783336/1753640
> Group Owner: cip-dev+owner@lists.cip-project.org
> Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129121/1753640/1405269326/xyzzy [quirin.gylstorff@siemens.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Adithya Balakumar March 18, 2024, 5:02 a.m. UTC | #4
-----Original Message-----
From: Gylstorff Quirin <quirin.gylstorff@siemens.com> 
Sent: Thursday, March 14, 2024 1:26 PM
To: cip-dev@lists.cip-project.org; balakumar adithya(TSIP TEUR) <Adithya.Balakumar@toshiba-tsip.com>
Cc: kunijadar shivanand(TSIP TMIEC ODG Porting) <Shivanand.Kunijadar@toshiba-tsip.com>; ashrith sai(TSIP) <Sai.Sathujoda@toshiba-tsip.com>; dinesh kumar(TSIP TMIEC ODG Porting) <dinesh.kumar@toshiba-tsip.com>; hayashi kazuhiro(林 和宏 DME ○DIG□MPS○MP4) <kazuhiro3.hayashi@toshiba.co.jp>
Subject: Re: [cip-dev] [isar-cip-core][RFC v1 1/6] conf: Use bookworm backports for enabling delta handler in swupdate



On 3/8/24 12:35 PM, Jan Kiszka via lists.cip-project.org wrote:
> On 07.03.24 08:46, Adithya Balakumar wrote:
>> Delta handler requires zchunk > 1.3, but the required version is only 
>> available in bookworm backports
>>
>> Signed-off-by: Adithya Balakumar <Adithya.Balakumar@toshiba-tsip.com>
>> ---
>>   conf/distro/cip-core-bookworm.conf                   |  3 +++
>>   conf/distro/debian-bookworm-backports.list           |  1 +
>>   .../preferences.swupdate-bookworm-backports.conf     | 12 ++++++++++++
>>   3 files changed, 16 insertions(+)
>>   create mode 100644 conf/distro/debian-bookworm-backports.list
>>   create mode 100644 
>> conf/distro/preferences.swupdate-bookworm-backports.conf
>>
>> diff --git a/conf/distro/cip-core-bookworm.conf 
>> b/conf/distro/cip-core-bookworm.conf
>> index 9bcf559..e0a4f7f 100644
>> --- a/conf/distro/cip-core-bookworm.conf
>> +++ b/conf/distro/cip-core-bookworm.conf
>> @@ -12,6 +12,9 @@
>>   require conf/distro/debian-bookworm.conf
>>   require cip-core-common.inc
>>   
>> +DISTRO_APT_SOURCES:append:swupdate = " conf/distro/debian-bookworm-backports.list"
>> +DISTRO_APT_PREFERENCES:append:swupdate = " conf/distro/preferences.swupdate-bookworm-backports.conf"
>> +
>>   PREFERRED_VERSION_swupdate ?= "2023.05%"
>>   PREFERRED_VERSION_linux-cip ?= "6.1.%"
>>   PREFERRED_VERSION_linux-cip-rt ?= "6.1.%"
>> diff --git a/conf/distro/debian-bookworm-backports.list 
>> b/conf/distro/debian-bookworm-backports.list
>> new file mode 100644
>> index 0000000..c4873b4
>> --- /dev/null
>> +++ b/conf/distro/debian-bookworm-backports.list
>> @@ -0,0 +1 @@
>> +deb http://deb.debian.org/debian bookworm-backports main contrib 
>> +non-free
>> diff --git a/conf/distro/preferences.swupdate-bookworm-backports.conf 
>> b/conf/distro/preferences.swupdate-bookworm-backports.conf
>> new file mode 100644
>> index 0000000..b6efffc
>> --- /dev/null
>> +++ b/conf/distro/preferences.swupdate-bookworm-backports.conf
>> @@ -0,0 +1,12 @@
>> +Package: libzck-dev
>> +Pin: release n=bookworm-backports
>> +Pin-Priority: 801
>> +
>> +Package: libzck1
>> +Pin: release n=bookworm-backports
>> +Pin-Priority: 801
>> +
>> +Package: zchunk
>> +Pin: release n=bookworm-backports
>> +Pin-Priority: 801
>> +
> 
> Backports are bad when it comes to use in production (they receive 
> best-effort updates only). It this the only options?
> 

As we need only backports for zchunk i would propose that we support only rdiff based image for distros <= bookworm. The zchunk support can be activiated for trixie and later.

Quirin

[Adithya Balakumar] 
Hi Quirin,

Since we currently support creating sid images in isar-cip-core, would it be ok to enable zchunk support only for sid images currently?

Regards,
Adithya

> Jan
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#15264): 
> https://lists.cip-project.org/g/cip-dev/message/15264
> Mute This Topic: https://lists.cip-project.org/mt/104783336/1753640
> Group Owner: cip-dev+owner@lists.cip-project.org
> Unsubscribe: 
> https://lists.cip-project.org/g/cip-dev/leave/8129121/1753640/14052693
> 26/xyzzy [quirin.gylstorff@siemens.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Gylstorff Quirin March 18, 2024, 9:31 a.m. UTC | #5
On 3/18/24 6:02 AM, Adithya.Balakumar@toshiba-tsip.com wrote:
> 
> 
> -----Original Message-----
> From: Gylstorff Quirin <quirin.gylstorff@siemens.com>
> Sent: Thursday, March 14, 2024 1:26 PM
> To: cip-dev@lists.cip-project.org; balakumar adithya(TSIP TEUR) <Adithya.Balakumar@toshiba-tsip.com>
> Cc: kunijadar shivanand(TSIP TMIEC ODG Porting) <Shivanand.Kunijadar@toshiba-tsip.com>; ashrith sai(TSIP) <Sai.Sathujoda@toshiba-tsip.com>; dinesh kumar(TSIP TMIEC ODG Porting) <dinesh.kumar@toshiba-tsip.com>; hayashi kazuhiro(林 和宏 DME ○DIG□MPS○MP4) <kazuhiro3.hayashi@toshiba.co.jp>
> Subject: Re: [cip-dev] [isar-cip-core][RFC v1 1/6] conf: Use bookworm backports for enabling delta handler in swupdate
> 
> 
> 
> On 3/8/24 12:35 PM, Jan Kiszka via lists.cip-project.org wrote:
>> On 07.03.24 08:46, Adithya Balakumar wrote:
>>> Delta handler requires zchunk > 1.3, but the required version is only
>>> available in bookworm backports
>>>
>>> Signed-off-by: Adithya Balakumar <Adithya.Balakumar@toshiba-tsip.com>
>>> ---
>>>    conf/distro/cip-core-bookworm.conf                   |  3 +++
>>>    conf/distro/debian-bookworm-backports.list           |  1 +
>>>    .../preferences.swupdate-bookworm-backports.conf     | 12 ++++++++++++
>>>    3 files changed, 16 insertions(+)
>>>    create mode 100644 conf/distro/debian-bookworm-backports.list
>>>    create mode 100644
>>> conf/distro/preferences.swupdate-bookworm-backports.conf
>>>
>>> diff --git a/conf/distro/cip-core-bookworm.conf
>>> b/conf/distro/cip-core-bookworm.conf
>>> index 9bcf559..e0a4f7f 100644
>>> --- a/conf/distro/cip-core-bookworm.conf
>>> +++ b/conf/distro/cip-core-bookworm.conf
>>> @@ -12,6 +12,9 @@
>>>    require conf/distro/debian-bookworm.conf
>>>    require cip-core-common.inc
>>>    
>>> +DISTRO_APT_SOURCES:append:swupdate = " conf/distro/debian-bookworm-backports.list"
>>> +DISTRO_APT_PREFERENCES:append:swupdate = " conf/distro/preferences.swupdate-bookworm-backports.conf"
>>> +
>>>    PREFERRED_VERSION_swupdate ?= "2023.05%"
>>>    PREFERRED_VERSION_linux-cip ?= "6.1.%"
>>>    PREFERRED_VERSION_linux-cip-rt ?= "6.1.%"
>>> diff --git a/conf/distro/debian-bookworm-backports.list
>>> b/conf/distro/debian-bookworm-backports.list
>>> new file mode 100644
>>> index 0000000..c4873b4
>>> --- /dev/null
>>> +++ b/conf/distro/debian-bookworm-backports.list
>>> @@ -0,0 +1 @@
>>> +deb http://deb.debian.org/debian bookworm-backports main contrib
>>> +non-free
>>> diff --git a/conf/distro/preferences.swupdate-bookworm-backports.conf
>>> b/conf/distro/preferences.swupdate-bookworm-backports.conf
>>> new file mode 100644
>>> index 0000000..b6efffc
>>> --- /dev/null
>>> +++ b/conf/distro/preferences.swupdate-bookworm-backports.conf
>>> @@ -0,0 +1,12 @@
>>> +Package: libzck-dev
>>> +Pin: release n=bookworm-backports
>>> +Pin-Priority: 801
>>> +
>>> +Package: libzck1
>>> +Pin: release n=bookworm-backports
>>> +Pin-Priority: 801
>>> +
>>> +Package: zchunk
>>> +Pin: release n=bookworm-backports
>>> +Pin-Priority: 801
>>> +
>>
>> Backports are bad when it comes to use in production (they receive
>> best-effort updates only). It this the only options?
>>
> 
> As we need only backports for zchunk i would propose that we support only rdiff based image for distros <= bookworm. The zchunk support can be activiated for trixie and later.
> 
> Quirin
> 
> [Adithya Balakumar]
> Hi Quirin,
> 
> Since we currently support creating sid images in isar-cip-core, would it be ok to enable zchunk support only for sid images currently?

sure that also would work.

Quirin
> 
> Regards,
> Adithya
> 
>> Jan
>>
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#15264):
>> https://lists.cip-project.org/g/cip-dev/message/15264
>> Mute This Topic: https://lists.cip-project.org/mt/104783336/1753640
>> Group Owner: cip-dev+owner@lists.cip-project.org
>> Unsubscribe:
>> https://lists.cip-project.org/g/cip-dev/leave/8129121/1753640/14052693
>> 26/xyzzy [quirin.gylstorff@siemens.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
diff mbox series

Patch

diff --git a/conf/distro/cip-core-bookworm.conf b/conf/distro/cip-core-bookworm.conf
index 9bcf559..e0a4f7f 100644
--- a/conf/distro/cip-core-bookworm.conf
+++ b/conf/distro/cip-core-bookworm.conf
@@ -12,6 +12,9 @@ 
 require conf/distro/debian-bookworm.conf
 require cip-core-common.inc
 
+DISTRO_APT_SOURCES:append:swupdate = " conf/distro/debian-bookworm-backports.list"
+DISTRO_APT_PREFERENCES:append:swupdate = " conf/distro/preferences.swupdate-bookworm-backports.conf"
+
 PREFERRED_VERSION_swupdate ?= "2023.05%"
 PREFERRED_VERSION_linux-cip ?= "6.1.%"
 PREFERRED_VERSION_linux-cip-rt ?= "6.1.%"
diff --git a/conf/distro/debian-bookworm-backports.list b/conf/distro/debian-bookworm-backports.list
new file mode 100644
index 0000000..c4873b4
--- /dev/null
+++ b/conf/distro/debian-bookworm-backports.list
@@ -0,0 +1 @@ 
+deb http://deb.debian.org/debian bookworm-backports main contrib non-free
diff --git a/conf/distro/preferences.swupdate-bookworm-backports.conf b/conf/distro/preferences.swupdate-bookworm-backports.conf
new file mode 100644
index 0000000..b6efffc
--- /dev/null
+++ b/conf/distro/preferences.swupdate-bookworm-backports.conf
@@ -0,0 +1,12 @@ 
+Package: libzck-dev
+Pin: release n=bookworm-backports
+Pin-Priority: 801
+
+Package: libzck1
+Pin: release n=bookworm-backports
+Pin-Priority: 801
+
+Package: zchunk
+Pin: release n=bookworm-backports
+Pin-Priority: 801
+