Skip to contentSkip to conversation

busybox: Add nsenter for podman runtime

PATCH Superseded Nathan Dunne 2 participants 4 messages Apr 14, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 busybox: Add nsenter for podman runtime

From: Nathan Dunne <[email protected]>

---
 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 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

---
 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

Reviewed-by on v1 2/2
#2 lore raw

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

Hi,

Quoted 7 lines · Nathan Dunne via lists.yoctoproject.org

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

Cheers
Bertrand

Quoted 21 lines

---
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

Reviewed-by on v1 1/2
#3 lore raw
In reply to Nathan Dunne

Hi Nathan,

Quoted 3 lines · Nathan Dunne via lists.yoctoproject.org

NIT: Maybe the commiter could add a simple commit message like:
Add nsenter to Busybox configuration as it is required by Podman at runtime

Cheers
Bertrand

Quoted 29 lines

---
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 -1
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