From 940a7875f0a2fc7e6afefcc1d18a1a2d95cae315 Mon Sep 17 00:00:00 2001 From: Nemanja Zeljkovic Date: Mon, 22 Sep 2025 12:41:18 +0200 Subject: [PATCH 1/2] Fix overlaying bpf mount Signed-off-by: Nemanja Zeljkovic --- config/bpfman-deployment/daemonset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/bpfman-deployment/daemonset.yaml b/config/bpfman-deployment/daemonset.yaml index a6cf93d76..ea1811ca6 100644 --- a/config/bpfman-deployment/daemonset.yaml +++ b/config/bpfman-deployment/daemonset.yaml @@ -43,7 +43,7 @@ spec: - -xc - | #!/bin/sh - if ! /bin/mount | /bin/grep -q 'bpffs on /sys/fs/bpf'; then + if ! /usr/bin/findmnt -n -t bpf /sys/fs/bpf >/dev/null 2>&1; then /bin/mount bpffs /sys/fs/bpf -t bpf fi securityContext: From 22f0229fd950c90caf4ecc27580465510c17b3ec Mon Sep 17 00:00:00 2001 From: Nemanja Zeljkovic Date: Tue, 23 Sep 2025 12:21:51 +0200 Subject: [PATCH 2/2] Use long-form flags for self documentation Signed-off-by: Nemanja Zeljkovic --- config/bpfman-deployment/daemonset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/bpfman-deployment/daemonset.yaml b/config/bpfman-deployment/daemonset.yaml index ea1811ca6..bbdea9981 100644 --- a/config/bpfman-deployment/daemonset.yaml +++ b/config/bpfman-deployment/daemonset.yaml @@ -43,7 +43,7 @@ spec: - -xc - | #!/bin/sh - if ! /usr/bin/findmnt -n -t bpf /sys/fs/bpf >/dev/null 2>&1; then + if ! /usr/bin/findmnt --noheadings --types bpf /sys/fs/bpf >/dev/null 2>&1; then /bin/mount bpffs /sys/fs/bpf -t bpf fi securityContext: