From 33cc594e398491469d8f8b232affa5aaac0fa177 Mon Sep 17 00:00:00 2001 From: Vincent Li Date: Sun, 7 Apr 2024 22:15:12 +0000 Subject: [PATCH] mount bpffs for xdp-tools for ISO build xdp-loader will only load the XDP program without xdp dispatcher if bpffs is not mounted, flash image has bpffs mounted already, add bpffs mount for ISO image Signed-off-by: Vincent Li --- src/initscripts/system/mountkernfs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/initscripts/system/mountkernfs b/src/initscripts/system/mountkernfs index b660083ec..5c8419578 100644 --- a/src/initscripts/system/mountkernfs +++ b/src/initscripts/system/mountkernfs @@ -46,6 +46,11 @@ case "${1}" in mount -t cgroup2 none /sys/fs/cgroup || failed=1 fi + if ! mountpoint /sys/fs/bpf &> /dev/null; then + boot_mesg -n " /sys/fs/bpf" ${NORMAL} + mount -t bpf bpffs /sys/fs/bpf || failed=1 + fi + if ! mountpoint /sys/firmware/efi/efivars &>/dev/null && [ -d "/sys/firmware/efi" ]; then boot_mesg -n " /sys/firmware/efi/efivars" ${NORMAL} mount -t efivarfs efivarfs /sys/firmware/efi/efivars || failed=1