mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user