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 <vincent.mc.li@gmail.com>
This commit is contained in:
Vincent Li
2024-04-07 22:15:12 +00:00
parent 35f1987b14
commit 33cc594e39

View File

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