Skip to contentSkip to conversation

podman: Use packageconfig to control fuse-overlayfs depend

PATCH In review Liu Yiding 2 participants 6 messages Mar 10 – Mar 11 1 message not in the archive

lore
Share & tools
lore

Liu Yiding

author
#0 lore raw

PATCH 1/1 podman: Use packageconfig to control fuse-overlayfs depend

The RDEPEND fuse-overlayfs is an Optional package so use packageconfig to control it.

Refer to https://podman.io/docs/installation

---
 recipes-containers/podman/podman_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-containers/podman/podman_git.bb +2 -1
index 53b9b6a0..4495d2d9 100644
@@ -68,7 +68,8 @@ EXTRA_OEMAKE = " \
 PODMAN_FEATURES ?= "docker"
 
 PACKAGECONFIG ?= ""
-PACKAGECONFIG[rootless] = ",,,fuse-overlayfs slirp4netns,,"
+PACKAGECONFIG[rootless] = ",,,slirp4netns,,"
+PACKAGECONFIG[fuse] = ",,,fuse-overlayfs,,"
 
 do_compile() {
 	cd ${S}/src
Signature · 1 line
2.43.0
#1 lore raw

In message: [meta-virtualization][PATCH] podman: Use packageconfig to control fuse-overlayfs depend

Quoted 14 lines · on 10/03/2026 Yiding Liu (Fujitsu) via lists.yoctoproject.org wrote:

The RDEPEND fuse-overlayfs is an Optional package so use packageconfig to control it.

Refer to https://podman.io/docs/installation

---
 recipes-containers/podman/podman_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-containers/podman/podman_git.bb +0 -0
index 53b9b6a0..4495d2d9 100644

recipes-containers/podman/podman_git.bb EXTRA_OEMAKE = " \ · line 72

Quoted 6 lines
recipes-containers/podman/podman_git.bb +2 -1
@@ -68,7 +68,8 @@ EXTRA_OEMAKE = " \
 PODMAN_FEATURES ?= "docker"
 
 PACKAGECONFIG ?= ""
-PACKAGECONFIG[rootless] = ",,,fuse-overlayfs slirp4netns,,"
+PACKAGECONFIG[rootless] = ",,,slirp4netns,,"
+PACKAGECONFIG[fuse] = ",,,fuse-overlayfs,,"

Whether right or wrong, fuse-overlayfs was being pulled in by rootless.

So it should stay pulled in by rootless (unless you can show me that there's no requirement at all from rootless .. and that information needs to be in the commit message).

It can also just stay in both, since last I checked, having the depdendency in twice doesn't cause any issues.

Bruce

Quoted 16 lines
recipes-containers/podman/podman_git.bb +0 -0
 do_compile() {
 	cd ${S}/src
Signature · 11 lines
2.43.0



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9631): https://lists.yoctoproject.org/g/meta-virtualization/message/9631
Mute This Topic: https://lists.yoctoproject.org/mt/118237141/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw

Hi Bruce

Do you mean a new patch like this:
--- a/recipes-containers/podman/podman_git.bb
+++ b/recipes-containers/podman/podman_git.bb
@@ -68,7 +68,7 @@ EXTRA_OEMAKE = " \
PODMAN_FEATURES ?= "docker"

PACKAGECONFIG ?= ""
-PACKAGECONFIG[rootless] = ",,,fuse-overlayfs slirp4netns,," +PACKAGECONFIG[rootless] = ",,,slirp4netns,,"

 do_compile() {
        cd ${S}/src

@@ -142,9 +142,16 @@ VIRTUAL-RUNTIME_base-utils-nsenter ?= "util-linux-nsenter"

COMPATIBLE_HOST = "^(?!mips).*"

+def get_fuse_overlayfs_dep(d):
+ if bb.utils.contains('PACKAGECONFIG', 'rootless', True, False, d) and \
+ bb.utils.contains('PACKAGECONFIG', 'fuse', True, False, d):
+ return "fuse-overlayfs"
+ return ""
+

 RDEPENDS:${PN} += "\
        catatonit conmon ${VIRTUAL-RUNTIME_container_runtime} gpgme iptables libdevmapper \
        ${VIRTUAL-RUNTIME_container_dns} ${VIRTUAL-RUNTIME_container_networking} ${VIRTUAL-RUNTIME_base-utils-nsenter} \

+ ${@get_fuse_overlayfs_dep(d)} \
"
RRECOMMENDS:${PN} += "slirp4netns

Or do you have a more elegant code?

Liu
________________________________
发件人: Bruce Ashfield <[email protected]>
发送时间: 2026年3月11日 06:40
收件人: Liu, Yiding/刘 乙丁 <[email protected]>
抄送: [email protected] <[email protected]> 主题: Re: [meta-virtualization][PATCH] podman: Use packageconfig to control fuse-overlayfs depend

In message: [meta-virtualization][PATCH] podman: Use packageconfig to control fuse-overlayfs depend

Quoted 14 lines · on 10/03/2026 Yiding Liu (Fujitsu) via lists.yoctoproject.org wrote:

The RDEPEND fuse-overlayfs is an Optional package so use packageconfig to control it.

Refer to https://podman.io/docs/installation

---
 recipes-containers/podman/podman_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-containers/podman/podman_git.bb +0 -0
index 53b9b6a0..4495d2d9 100644

recipes-containers/podman/podman_git.bb EXTRA_OEMAKE = " \ · line 72

Quoted 6 lines
recipes-containers/podman/podman_git.bb +2 -1
@@ -68,7 +68,8 @@ EXTRA_OEMAKE = " \
 PODMAN_FEATURES ?= "docker"
 
 PACKAGECONFIG ?= ""
-PACKAGECONFIG[rootless] = ",,,fuse-overlayfs slirp4netns,,"
+PACKAGECONFIG[rootless] = ",,,slirp4netns,,"
+PACKAGECONFIG[fuse] = ",,,fuse-overlayfs,,"

Whether right or wrong, fuse-overlayfs was being pulled in by rootless.

So it should stay pulled in by rootless (unless you can show me that there's no requirement at all from rootless .. and that information needs to be in the commit message).

It can also just stay in both, since last I checked, having the depdendency in twice doesn't cause any issues.

Bruce

Quoted 16 lines
recipes-containers/podman/podman_git.bb +0 -1
 do_compile() {
       cd ${S}/src
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9631): https://lists.yoctoproject.org/g/meta-virtualization/message/9631
Mute This Topic: https://lists.yoctoproject.org/mt/118237141/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 4 lines · Yiding Liu (Fujitsu)

Hi Bruce

Do you mean a new patch like this:

No. But maybe I misunderstood what you are trying to do. Are you saying that fuse-overlayfs is causing an issue when it is enabled for rootless ?

I was saying that you can add a new package config for it, but also leave it enabled in rootless, since it is currently enabled and builds may be expecting it.

i.e. just add this:

+PACKAGECONFIG[fuse] = ",,,fuse-overlayfs,,"

And leave rootless alone. That way if you just want fuse, you'll get it via "fuse", if rootless is used, you get both (just as was the case previously).

Bruce

Quoted 104 lines

--- a/recipes-containers/podman/podman_git.bb
+++ b/recipes-containers/podman/podman_git.bb

recipes-containers/podman/podman_git.bb +1 -1
@@ -68,7 +68,7 @@ EXTRA_OEMAKE = " \
 PODMAN_FEATURES ?= "docker"
 
 PACKAGECONFIG ?= ""
-PACKAGECONFIG[rootless] = ",,,fuse-overlayfs slirp4netns,,"
+PACKAGECONFIG[rootless] = ",,,slirp4netns,,"
 
 do_compile() {
        cd ${S}/src
@@ -142,9 +142,16 @@ VIRTUAL-RUNTIME_base-utils-nsenter ?=

"util-linux-nsenter"

COMPATIBLE_HOST = "^(?!mips).*"

(quoted diff) +2 -0
+def get_fuse_overlayfs_dep(d):
+    if bb.utils.contains('PACKAGECONFIG', 'rootless', True, False, d) and

\

(quoted diff) +4 -0
+       bb.utils.contains('PACKAGECONFIG', 'fuse', True, False, d):
+        return "fuse-overlayfs"
+    return ""
+
 RDEPENDS:${PN} += "\
        catatonit conmon ${VIRTUAL-RUNTIME_container_runtime} gpgme
iptables libdevmapper \
        ${VIRTUAL-RUNTIME_container_dns}

${VIRTUAL-RUNTIME_container_networking}
${VIRTUAL-RUNTIME_base-utils-nsenter} \
+ ${@get_fuse_overlayfs_dep(d)} \
"
RRECOMMENDS:${PN} += "slirp4netns

Or do you have a more elegant code?

Liu
------------------------------
*发件人:* Bruce Ashfield <[email protected]>
*发送时间:* 2026年3月11日 06:40
*收件人:* Liu, Yiding/刘 乙丁 <[email protected]>
*抄送:* [email protected] < [email protected]>
*主题:* Re: [meta-virtualization][PATCH] podman: Use packageconfig to control fuse-overlayfs depend

In message: [meta-virtualization][PATCH] podman: Use packageconfig to control fuse-overlayfs depend

Quoted 1 line · on 10/03/2026 Yiding Liu (Fujitsu) via lists.yoctoproject.org wrote:

The RDEPEND fuse-overlayfs is an Optional package so use packageconfig

to control it.

Review

Quoted 9 lines

Refer to https://podman.io/docs/installation

---
 recipes-containers/podman/podman_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/recipes-containers/podman/podman_git.bb

recipes-containers/podman/podman_git.bb EXTRA_OEMAKE = " \ · line 72

Quoted 10 lines

index 53b9b6a0..4495d2d9 100644

recipes-containers/podman/podman_git.bb +2 -1
@@ -68,7 +68,8 @@ EXTRA_OEMAKE = " \
 PODMAN_FEATURES ?= "docker"
 
 PACKAGECONFIG ?= ""
-PACKAGECONFIG[rootless] = ",,,fuse-overlayfs slirp4netns,,"
+PACKAGECONFIG[rootless] = ",,,slirp4netns,,"
+PACKAGECONFIG[fuse] = ",,,fuse-overlayfs,,"

Whether right or wrong, fuse-overlayfs was being pulled in by rootless.

So it should stay pulled in by rootless (unless you can show me that there's no requirement at all from rootless .. and that information needs to be in the commit message).

It can also just stay in both, since last I checked, having the depdendency in twice doesn't cause any issues.

Bruce

Quoted 11 lines
recipes-containers/podman/podman_git.bb +0 -1
 do_compile() {
       cd ${S}/src
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#9631):

https://lists.yoctoproject.org/g/meta-virtualization/message/9631

Quoted 3 lines

Mute This Topic: https://lists.yoctoproject.org/mt/118237141/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub

[[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

Hi Bruce
I found rootless overlay for podman:
https://www.redhat.com/en/blog/podman-rootless-overlay

It seems that podman can use native overlay file system with the Linux kernel versions 5.13. So fuse-overlayfs is not mandatory RDEDPEN in rootless after kernel 5.13.

What do you think about it.

Liu
________________________________
发件人: [email protected] <[email protected]> 代表 Yiding Liu (Fujitsu) via lists.yoctoproject.org <[email protected]> 发送时间: 2026年3月11日 10:27
收件人: Bruce Ashfield <[email protected]>
抄送: [email protected] <[email protected]>
主题: Re: [meta-virtualization][PATCH] podman: Use packageconfig to control fuse-overlayfs depend

Hi Bruce

Do you mean a new patch like this:
--- a/recipes-containers/podman/podman_git.bb
+++ b/recipes-containers/podman/podman_git.bb
@@ -68,7 +68,7 @@ EXTRA_OEMAKE = " \
PODMAN_FEATURES ?= "docker"

PACKAGECONFIG ?= ""
-PACKAGECONFIG[rootless] = ",,,fuse-overlayfs slirp4netns,," +PACKAGECONFIG[rootless] = ",,,slirp4netns,,"

 do_compile() {
        cd ${S}/src

@@ -142,9 +142,16 @@ VIRTUAL-RUNTIME_base-utils-nsenter ?= "util-linux-nsenter"

COMPATIBLE_HOST = "^(?!mips).*"

+def get_fuse_overlayfs_dep(d):
+ if bb.utils.contains('PACKAGECONFIG', 'rootless', True, False, d) and \
+ bb.utils.contains('PACKAGECONFIG', 'fuse', True, False, d):
+ return "fuse-overlayfs"
+ return ""
+

 RDEPENDS:${PN} += "\
        catatonit conmon ${VIRTUAL-RUNTIME_container_runtime} gpgme iptables libdevmapper \
        ${VIRTUAL-RUNTIME_container_dns} ${VIRTUAL-RUNTIME_container_networking} ${VIRTUAL-RUNTIME_base-utils-nsenter} \

+ ${@get_fuse_overlayfs_dep(d)} \
"
RRECOMMENDS:${PN} += "slirp4netns

Or do you have a more elegant code?

Liu
________________________________
发件人: Bruce Ashfield <[email protected]>
发送时间: 2026年3月11日 06:40
收件人: Liu, Yiding/刘 乙丁 <[email protected]>
抄送: [email protected] <[email protected]> 主题: Re: [meta-virtualization][PATCH] podman: Use packageconfig to control fuse-overlayfs depend

In message: [meta-virtualization][PATCH] podman: Use packageconfig to control fuse-overlayfs depend

Quoted 14 lines · on 10/03/2026 Yiding Liu (Fujitsu) via lists.yoctoproject.org wrote:

The RDEPEND fuse-overlayfs is an Optional package so use packageconfig to control it.

Refer to https://podman.io/docs/installation

---
 recipes-containers/podman/podman_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-containers/podman/podman_git.bb +0 -0
index 53b9b6a0..4495d2d9 100644

recipes-containers/podman/podman_git.bb EXTRA_OEMAKE = " \ · line 72

Quoted 6 lines
recipes-containers/podman/podman_git.bb +2 -1
@@ -68,7 +68,8 @@ EXTRA_OEMAKE = " \
 PODMAN_FEATURES ?= "docker"
 
 PACKAGECONFIG ?= ""
-PACKAGECONFIG[rootless] = ",,,fuse-overlayfs slirp4netns,,"
+PACKAGECONFIG[rootless] = ",,,slirp4netns,,"
+PACKAGECONFIG[fuse] = ",,,fuse-overlayfs,,"

Whether right or wrong, fuse-overlayfs was being pulled in by rootless.

So it should stay pulled in by rootless (unless you can show me that there's no requirement at all from rootless .. and that information needs to be in the commit message).

It can also just stay in both, since last I checked, having the depdendency in twice doesn't cause any issues.

Bruce

Quoted 10 lines
recipes-containers/podman/podman_git.bb +0 -1
 do_compile() {
       cd ${S}/src
--

2.43.0

#6 lore raw
Quoted 5 lines · Yiding Liu (Fujitsu)

Hi Bruce
I found rootless overlay for podman:
https://www.redhat.com/en/blog/podman-rootless-overlay

Yes, I'm aware.

Quoted 7 lines

It seems that podman can use native overlay file system with the
Linux kernel versions 5.13.
So fuse-overlayfs is not mandatory RDEDPEN in rootless after kernel
5.13.

What do you think about it.

My answer is the same. If it isn't causing a runtime issue, then leave it as-is.

Bruce

Quoted 112 lines

Liu
------------------------------
*发件人:* [email protected] < [email protected]> 代表 Yiding Liu (Fujitsu) via lists.yoctoproject.org <[email protected]> *发送时间:* 2026年3月11日 10:27
*收件人:* Bruce Ashfield <[email protected]>
*抄送:* [email protected] < [email protected]>
*主题:* Re: [meta-virtualization][PATCH] podman: Use packageconfig to control fuse-overlayfs depend

Hi Bruce

Do you mean a new patch like this:
--- a/recipes-containers/podman/podman_git.bb
+++ b/recipes-containers/podman/podman_git.bb

recipes-containers/podman/podman_git.bb +1 -1
@@ -68,7 +68,7 @@ EXTRA_OEMAKE = " \
 PODMAN_FEATURES ?= "docker"
 
 PACKAGECONFIG ?= ""
-PACKAGECONFIG[rootless] = ",,,fuse-overlayfs slirp4netns,,"
+PACKAGECONFIG[rootless] = ",,,slirp4netns,,"
 
 do_compile() {
        cd ${S}/src
@@ -142,9 +142,16 @@ VIRTUAL-RUNTIME_base-utils-nsenter ?=

"util-linux-nsenter"

COMPATIBLE_HOST = "^(?!mips).*"

(quoted diff) +2 -0
+def get_fuse_overlayfs_dep(d):
+    if bb.utils.contains('PACKAGECONFIG', 'rootless', True, False, d) and

\

(quoted diff) +4 -0
+       bb.utils.contains('PACKAGECONFIG', 'fuse', True, False, d):
+        return "fuse-overlayfs"
+    return ""
+
 RDEPENDS:${PN} += "\
        catatonit conmon ${VIRTUAL-RUNTIME_container_runtime} gpgme
iptables libdevmapper \
        ${VIRTUAL-RUNTIME_container_dns}

${VIRTUAL-RUNTIME_container_networking}
${VIRTUAL-RUNTIME_base-utils-nsenter} \
+ ${@get_fuse_overlayfs_dep(d)} \
"
RRECOMMENDS:${PN} += "slirp4netns

Or do you have a more elegant code?

Liu
------------------------------
*发件人:* Bruce Ashfield <[email protected]>
*发送时间:* 2026年3月11日 06:40
*收件人:* Liu, Yiding/刘 乙丁 <[email protected]>
*抄送:* [email protected] < [email protected]>
*主题:* Re: [meta-virtualization][PATCH] podman: Use packageconfig to control fuse-overlayfs depend

In message: [meta-virtualization][PATCH] podman: Use packageconfig to control fuse-overlayfs depend

Quoted 1 line · on 10/03/2026 Yiding Liu (Fujitsu) via lists.yoctoproject.org wrote:

The RDEPEND fuse-overlayfs is an Optional package so use packageconfig

to control it.

Review

Quoted 9 lines

Refer to https://podman.io/docs/installation

---
 recipes-containers/podman/podman_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/recipes-containers/podman/podman_git.bb

recipes-containers/podman/podman_git.bb EXTRA_OEMAKE = " \ · line 72

Quoted 10 lines

index 53b9b6a0..4495d2d9 100644

recipes-containers/podman/podman_git.bb +2 -1
@@ -68,7 +68,8 @@ EXTRA_OEMAKE = " \
 PODMAN_FEATURES ?= "docker"
 
 PACKAGECONFIG ?= ""
-PACKAGECONFIG[rootless] = ",,,fuse-overlayfs slirp4netns,,"
+PACKAGECONFIG[rootless] = ",,,slirp4netns,,"
+PACKAGECONFIG[fuse] = ",,,fuse-overlayfs,,"

Whether right or wrong, fuse-overlayfs was being pulled in by rootless.

So it should stay pulled in by rootless (unless you can show me that there's no requirement at all from rootless .. and that information needs to be in the commit message).

It can also just stay in both, since last I checked, having the depdendency in twice doesn't cause any issues.

Bruce

Quoted 10 lines
recipes-containers/podman/podman_git.bb +0 -1
 do_compile() {
       cd ${S}/src
--

2.43.0

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II