* [Buildroot] [PATCH 1/1] package/crun: support crun as runtime in containerd
@ 2022-10-06 14:07 TIAN Yuanhao
2022-11-21 15:08 ` Christian Stewart via buildroot
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: TIAN Yuanhao @ 2022-10-06 14:07 UTC (permalink / raw)
To: buildroot; +Cc: TIAN Yuanhao
Create runc symlink to crun when runc is missing.
See: https://github.com/containerd/containerd/discussions/6162
Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
---
package/containerd/Config.in | 2 +-
package/crun/crun.mk | 7 +++++++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/package/containerd/Config.in b/package/containerd/Config.in
index 0e3a55ef39..e69dd6768a 100644
--- a/package/containerd/Config.in
+++ b/package/containerd/Config.in
@@ -5,7 +5,7 @@ config BR2_PACKAGE_CONTAINERD
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_TOOLCHAIN_USES_UCLIBC # runc
depends on BR2_USE_MMU # util-linux
- select BR2_PACKAGE_RUNC # runtime dependency
+ select BR2_PACKAGE_RUNC if !BR2_PACKAGE_CRUN # runtime dependency
select BR2_PACKAGE_UTIL_LINUX # runtime dependency
select BR2_PACKAGE_UTIL_LINUX_BINARIES
select BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT
diff --git a/package/crun/crun.mk b/package/crun/crun.mk
index 4a0c150594..19dda71a9f 100644
--- a/package/crun/crun.mk
+++ b/package/crun/crun.mk
@@ -36,4 +36,11 @@ else
CRUN_CONF_OPTS += --disable-systemd
endif
+ifeq ($(BR2_PACKAGE_RUNC),)
+define CRUN_CREATE_SYMLINK
+ ln -sf crun $(TARGET_DIR)/usr/bin/runc
+endef
+CRUN_POST_INSTALL_TARGET_HOOKS += CRUN_CREATE_SYMLINK
+endif
+
$(eval $(autotools-package))
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/crun: support crun as runtime in containerd
2022-10-06 14:07 [Buildroot] [PATCH 1/1] package/crun: support crun as runtime in containerd TIAN Yuanhao
@ 2022-11-21 15:08 ` Christian Stewart via buildroot
2022-12-21 1:23 ` tianyuanhao3
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Christian Stewart via buildroot @ 2022-11-21 15:08 UTC (permalink / raw)
To: TIAN Yuanhao; +Cc: Christian Stewart, Buildroot Mailing List
[-- Attachment #1.1: Type: text/plain, Size: 1608 bytes --]
Hi all,
On Thu, Oct 6, 2022, 7:08 AM TIAN Yuanhao <tianyuanhao3@163.com> wrote:
> Create runc symlink to crun when runc is missing.
>
> See: https://github.com/containerd/containerd/discussions/6162
>
> Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
> ---
> package/containerd/Config.in | 2 +-
> package/crun/crun.mk | 7 +++++++
> 2 files changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/package/containerd/Config.in b/package/containerd/Config.in
> index 0e3a55ef39..e69dd6768a 100644
> --- a/package/containerd/Config.in
> +++ b/package/containerd/Config.in
> @@ -5,7 +5,7 @@ config BR2_PACKAGE_CONTAINERD
> depends on BR2_TOOLCHAIN_HAS_THREADS
> depends on !BR2_TOOLCHAIN_USES_UCLIBC # runc
> depends on BR2_USE_MMU # util-linux
> - select BR2_PACKAGE_RUNC # runtime dependency
> + select BR2_PACKAGE_RUNC if !BR2_PACKAGE_CRUN # runtime dependency
> select BR2_PACKAGE_UTIL_LINUX # runtime dependency
> select BR2_PACKAGE_UTIL_LINUX_BINARIES
> select BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT
> diff --git a/package/crun/crun.mk b/package/crun/crun.mk
> index 4a0c150594..19dda71a9f 100644
> --- a/package/crun/crun.mk
> +++ b/package/crun/crun.mk
> @@ -36,4 +36,11 @@ else
> CRUN_CONF_OPTS += --disable-systemd
> endif
>
> +ifeq ($(BR2_PACKAGE_RUNC),)
> +define CRUN_CREATE_SYMLINK
> + ln -sf crun $(TARGET_DIR)/usr/bin/runc
> +endef
> +CRUN_POST_INSTALL_TARGET_HOOKS += CRUN_CREATE_SYMLINK
> +endif
> +
> $(eval $(autotools-package))
> --
> 2.25.1
>
Reviewed-by: Christian Stewart <christian@paral.in>
Thanks!
>
>
[-- Attachment #1.2: Type: text/html, Size: 2927 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/crun: support crun as runtime in containerd
2022-10-06 14:07 [Buildroot] [PATCH 1/1] package/crun: support crun as runtime in containerd TIAN Yuanhao
2022-11-21 15:08 ` Christian Stewart via buildroot
@ 2022-12-21 1:23 ` tianyuanhao3
2023-01-08 2:40 ` Christian Stewart via buildroot
2023-01-08 16:12 ` Yann E. MORIN
3 siblings, 0 replies; 5+ messages in thread
From: tianyuanhao3 @ 2022-12-21 1:23 UTC (permalink / raw)
To: buildroot
[-- Attachment #1.1: Type: text/plain, Size: 1509 bytes --]
Hi all,
I hope this patch will be merged before 2023.02.
Thanks!
At 2022-10-06 22:07:54, "TIAN Yuanhao" <tianyuanhao3@163.com> wrote:
>Create runc symlink to crun when runc is missing.
>
>See: https://github.com/containerd/containerd/discussions/6162
>
>Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
>---
> package/containerd/Config.in | 2 +-
> package/crun/crun.mk | 7 +++++++
> 2 files changed, 8 insertions(+), 1 deletion(-)
>
>diff --git a/package/containerd/Config.in b/package/containerd/Config.in
>index 0e3a55ef39..e69dd6768a 100644
>--- a/package/containerd/Config.in
>+++ b/package/containerd/Config.in
>@@ -5,7 +5,7 @@ config BR2_PACKAGE_CONTAINERD
> depends on BR2_TOOLCHAIN_HAS_THREADS
> depends on !BR2_TOOLCHAIN_USES_UCLIBC # runc
> depends on BR2_USE_MMU # util-linux
>- select BR2_PACKAGE_RUNC # runtime dependency
>+ select BR2_PACKAGE_RUNC if !BR2_PACKAGE_CRUN # runtime dependency
> select BR2_PACKAGE_UTIL_LINUX # runtime dependency
> select BR2_PACKAGE_UTIL_LINUX_BINARIES
> select BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT
>diff --git a/package/crun/crun.mk b/package/crun/crun.mk
>index 4a0c150594..19dda71a9f 100644
>--- a/package/crun/crun.mk
>+++ b/package/crun/crun.mk
>@@ -36,4 +36,11 @@ else
> CRUN_CONF_OPTS += --disable-systemd
> endif
>
>+ifeq ($(BR2_PACKAGE_RUNC),)
>+define CRUN_CREATE_SYMLINK
>+ ln -sf crun $(TARGET_DIR)/usr/bin/runc
>+endef
>+CRUN_POST_INSTALL_TARGET_HOOKS += CRUN_CREATE_SYMLINK
>+endif
>+
> $(eval $(autotools-package))
>--
>2.25.1
[-- Attachment #1.2: Type: text/html, Size: 2039 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/crun: support crun as runtime in containerd
2022-10-06 14:07 [Buildroot] [PATCH 1/1] package/crun: support crun as runtime in containerd TIAN Yuanhao
2022-11-21 15:08 ` Christian Stewart via buildroot
2022-12-21 1:23 ` tianyuanhao3
@ 2023-01-08 2:40 ` Christian Stewart via buildroot
2023-01-08 16:12 ` Yann E. MORIN
3 siblings, 0 replies; 5+ messages in thread
From: Christian Stewart via buildroot @ 2023-01-08 2:40 UTC (permalink / raw)
To: TIAN Yuanhao; +Cc: Christian Stewart, buildroot
Hi all,
On Thu, Oct 6, 2022 at 7:08 AM TIAN Yuanhao <tianyuanhao3@163.com> wrote:
>
> Create runc symlink to crun when runc is missing.
>
> See: https://github.com/containerd/containerd/discussions/6162
>
> Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
> ---
> package/containerd/Config.in | 2 +-
> package/crun/crun.mk | 7 +++++++
> 2 files changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/package/containerd/Config.in b/package/containerd/Config.in
> index 0e3a55ef39..e69dd6768a 100644
> --- a/package/containerd/Config.in
> +++ b/package/containerd/Config.in
> @@ -5,7 +5,7 @@ config BR2_PACKAGE_CONTAINERD
> depends on BR2_TOOLCHAIN_HAS_THREADS
> depends on !BR2_TOOLCHAIN_USES_UCLIBC # runc
> depends on BR2_USE_MMU # util-linux
> - select BR2_PACKAGE_RUNC # runtime dependency
> + select BR2_PACKAGE_RUNC if !BR2_PACKAGE_CRUN # runtime dependency
> select BR2_PACKAGE_UTIL_LINUX # runtime dependency
> select BR2_PACKAGE_UTIL_LINUX_BINARIES
> select BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT
> diff --git a/package/crun/crun.mk b/package/crun/crun.mk
> index 4a0c150594..19dda71a9f 100644
> --- a/package/crun/crun.mk
> +++ b/package/crun/crun.mk
> @@ -36,4 +36,11 @@ else
> CRUN_CONF_OPTS += --disable-systemd
> endif
>
This patch is still good, seems stalled though, can we merge?
Thanks!
Christian
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/crun: support crun as runtime in containerd
2022-10-06 14:07 [Buildroot] [PATCH 1/1] package/crun: support crun as runtime in containerd TIAN Yuanhao
` (2 preceding siblings ...)
2023-01-08 2:40 ` Christian Stewart via buildroot
@ 2023-01-08 16:12 ` Yann E. MORIN
3 siblings, 0 replies; 5+ messages in thread
From: Yann E. MORIN @ 2023-01-08 16:12 UTC (permalink / raw)
To: TIAN Yuanhao; +Cc: buildroot
Yuanhao, All,
On 2022-10-06 07:07 -0700, TIAN Yuanhao spake thusly:
> Create runc symlink to crun when runc is missing.
I've split this patch in two, as they are semantically separate:
1. have crun impersonate runc if the latter is not enabled,
2. do not force runc in containerd if crun is enabled
Indeed, one may very well want to use crun as an anternative to runc,
even without using containerd.
> See: https://github.com/containerd/containerd/discussions/6162
>
> Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> package/containerd/Config.in | 2 +-
> package/crun/crun.mk | 7 +++++++
> 2 files changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/package/containerd/Config.in b/package/containerd/Config.in
> index 0e3a55ef39..e69dd6768a 100644
> --- a/package/containerd/Config.in
> +++ b/package/containerd/Config.in
> @@ -5,7 +5,7 @@ config BR2_PACKAGE_CONTAINERD
> depends on BR2_TOOLCHAIN_HAS_THREADS
> depends on !BR2_TOOLCHAIN_USES_UCLIBC # runc
> depends on BR2_USE_MMU # util-linux
> - select BR2_PACKAGE_RUNC # runtime dependency
> + select BR2_PACKAGE_RUNC if !BR2_PACKAGE_CRUN # runtime dependency
> select BR2_PACKAGE_UTIL_LINUX # runtime dependency
> select BR2_PACKAGE_UTIL_LINUX_BINARIES
> select BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT
> diff --git a/package/crun/crun.mk b/package/crun/crun.mk
> index 4a0c150594..19dda71a9f 100644
> --- a/package/crun/crun.mk
> +++ b/package/crun/crun.mk
> @@ -36,4 +36,11 @@ else
> CRUN_CONF_OPTS += --disable-systemd
> endif
>
> +ifeq ($(BR2_PACKAGE_RUNC),)
> +define CRUN_CREATE_SYMLINK
> + ln -sf crun $(TARGET_DIR)/usr/bin/runc
> +endef
> +CRUN_POST_INSTALL_TARGET_HOOKS += CRUN_CREATE_SYMLINK
> +endif
> +
> $(eval $(autotools-package))
> --
> 2.25.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-01-08 16:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-06 14:07 [Buildroot] [PATCH 1/1] package/crun: support crun as runtime in containerd TIAN Yuanhao
2022-11-21 15:08 ` Christian Stewart via buildroot
2022-12-21 1:23 ` tianyuanhao3
2023-01-08 2:40 ` Christian Stewart via buildroot
2023-01-08 16:12 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox