Skip to contentSkip to conversation

busybox: Add nsenter for podman runtime

PATCH In review Nathan Dunne 3 participants 9 messages Apr 15, 2021 – Apr 19, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 busybox: Add nsenter for podman runtime

From: Nathan Dunne <[email protected]>

Add nsenter to Busybox configuration as it is required by Podman at runtime

Issue-Id: SCM-2355

Change-Id Icee4da01294c4e7ff91ab528b2df01cb486b2df1
---
 recipes-core/busybox/busybox/nsenter.cfg        | 1 +
 recipes-core/busybox/busybox_virtualization.inc | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 recipes-core/busybox/busybox/nsenter.cfg
recipes-core/busybox/busybox/nsenter.cfg new file +1 -0
new file mode 100644
index 0000000..0a58df5
@@ -0,0 +1 @@
+CONFIG_NSENTER=y
recipes-core/busybox/busybox_virtualization.inc +1 -0
index d9c4e67..15f1930 100644
@@ -7,4 +7,5 @@ SRC_URI += " \
 	    file://mount-cifs.cfg \
 	    file://ps-extras.cfg \
 	    file://getopt.cfg \
+	    file://nsenter.cfg \
            "

--
2.17.1

#1 lore raw

PATCH v2 2/2 podman: Added kernel modules for iptables error

From: Nathan Dunne <[email protected]>

Added kernel modules kernel-module-xt-masquerade and kernel-module-xt-comment to RRECOMMENDS, to avoid iptables errors with podman

Issue-Id: SCM-2355

Change-Id If806a6802352b2658a695bf5265c1ead82fe3248
---
 recipes-containers/podman/podman_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-containers/podman/podman_git.bb +1 -1
index 62ae024..6fb803e 100644
@@ -109,5 +109,5 @@ FILES_${PN} += " \
 SYSTEMD_SERVICE_${PN} = "podman.service podman.socket"
 
 RDEPENDS_${PN} += "conmon virtual/runc iptables cni skopeo"
-RRECOMMENDS_${PN} += "slirp4netns"
+RRECOMMENDS_${PN} += "slirp4netns kernel-module-xt-masquerade kernel-module-xt-comment"
 RCONFLICTS_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'docker', 'docker', '', d)}"

--
2.17.1

#2 lore raw

Re: [meta-virtualization] [PATCH v2 2/2] podman: Added kernel modules for iptables error

What's the delta in v2 from v1 ? It wasn't immediately obvious to me.

Bruce

Quoted 31 lines · Nathan Dunne

From: Nathan Dunne <[email protected]>

Added kernel modules kernel-module-xt-masquerade and kernel-module-xt-comment to RRECOMMENDS, to avoid iptables errors with podman

Issue-Id: SCM-2355

Change-Id If806a6802352b2658a695bf5265c1ead82fe3248
---
 recipes-containers/podman/podman_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-containers/podman/podman_git.bb +1 -2
index 62ae024..6fb803e 100644
@@ -109,5 +109,5 @@ FILES_${PN} += " \
 SYSTEMD_SERVICE_${PN} = "podman.service podman.socket"
 
 RDEPENDS_${PN} += "conmon virtual/runc iptables cni skopeo"
-RRECOMMENDS_${PN} += "slirp4netns"
+RRECOMMENDS_${PN} += "slirp4netns kernel-module-xt-masquerade kernel-module-xt-comment"
 RCONFLICTS_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'docker', 'docker', '', d)}"
--

2.17.1

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
#3 lore raw

Re: [PATCH v2 2/2] podman: Added kernel modules for iptables error

Just the commit message on the first patch in the chain as suggested by Bertrand

Nathan

#4 lore raw

Re: [meta-virtualization] [PATCH v2 2/2] podman: Added kernel modules for iptables error

In reply to Bruce Ashfield

Hi Bruce,

Quoted 3 lines · Bruce Ashfield via lists.yoctoproject.org

What's the delta in v2 from v1 ? It wasn't immediately obvious to me.

Nathan added a commit message to the first patch.

Cheers
Bertrand

Quoted 43 lines

Bruce

Quoted 31 lines · Nathan Dunne

From: Nathan Dunne <[email protected]>

Added kernel modules kernel-module-xt-masquerade and kernel-module-xt-comment to RRECOMMENDS, to avoid iptables errors with podman

Issue-Id: SCM-2355

Change-Id If806a6802352b2658a695bf5265c1ead82fe3248

---
recipes-containers/podman/podman_git.bb | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
recipes-containers/podman/podman_git.bb +0 -0
index 62ae024..6fb803e 100644
@@ -109,5 +109,5 @@ FILES_${PN} += " \

SYSTEMD_SERVICE_${PN} = "podman.service podman.socket"

RDEPENDS_${PN} += "conmon virtual/runc iptables cni skopeo"

recipes-containers/podman/podman_git.bb +1 -1
-RRECOMMENDS_${PN} += "slirp4netns"
+RRECOMMENDS_${PN} += "slirp4netns kernel-module-xt-masquerade kernel-module-xt-comment"

RCONFLICTS_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'docker', 'docker', '', d)}" --
2.17.1

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
#5 lore raw
In reply to Nathan Dunne

Hi,

I've accidentally included the Issue-Id and Change-Id tags in v2 of these patches, can they be removed on merge or should I submit a v3?

Thanks,
Nathan

#6 lore raw

In message: Re: [meta-virtualization] [PATCH v2 1/2] busybox: Add nsenter for podman runtime

Quoted 4 lines · on 15/04/2021 Nathan Dunne wrote:

Hi,

I've accidentally included the Issue-Id and Change-Id tags in v2 of these patches, can they be removed on merge or should I submit a v3?

I edited the patches are part of my normal flow and dropped the tracking IDs.

But thanks for noticing and following up!

Bruce

Quoted 7 lines

Thanks,
Nathan

#7 lore raw

Hi Bruce,

Could these two patches for podman also be backported to Hardknott please?

Thanks,
Nathan

#8 lore raw
Quoted 5 lines · Nathan Dunne

Hi Bruce,

Could these two patches for podman also be backported to Hardknott please?

they should be there, I cherry picked them last night.

... but now that I go look, I see I didn't push them.

All good now.

Bruce

Quoted 4 lines

Thanks,
Nathan

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