From e12ed112bd9406d6b57e43d41c014c7f1c2edb96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Krzysztof=20Rekucki?= Date: Wed, 30 Oct 2024 11:03:34 +0100 Subject: [PATCH] added fuse --- runtime/init-container/Makefile | 2 ++ runtime/init-container/src/init.c | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/runtime/init-container/Makefile b/runtime/init-container/Makefile index 2f091a79..a1707b86 100644 --- a/runtime/init-container/Makefile +++ b/runtime/init-container/Makefile @@ -135,6 +135,8 @@ initramfs.cpio.gz: init mkfs $(UNPACKED_KERNEL) cp $(UNPACKED_KERNEL)/lib/modules/$(KERNEL_VER)/kernel/net/core/failover.ko initramfs cp $(UNPACKED_KERNEL)/lib/modules/$(KERNEL_VER)/kernel/net/ipv6/ipv6.ko initramfs cp $(UNPACKED_KERNEL)/lib/modules/$(KERNEL_VER)/kernel/net/packet/af_packet.ko initramfs + cp $(UNPACKED_KERNEL)/lib/modules/5.10.29-0-virt/kernel/fs/fuse/fuse.ko initramfs + cp $(BUSYBOX)/$(MKFS_NAME) initramfs mkdir initramfs/$(NEW_ROOT) set -euo pipefail; cd initramfs && find . | cpio --quiet -o -H newc -R 0:0 | gzip -9 > ../$@ diff --git a/runtime/init-container/src/init.c b/runtime/init-container/src/init.c index d5938f42..dc72f09c 100644 --- a/runtime/init-container/src/init.c +++ b/runtime/init-container/src/init.c @@ -2675,8 +2675,10 @@ int main(int argc, char **argv) load_module("/ext2.ko"); load_module("/squashfs.ko"); load_module("/overlay.ko"); - if (access("/netfs.ko", R_OK) == 0) + if (access("/netfs.ko", R_OK) == 0) { load_module("/netfs.ko"); + } + load_module("/fscache.ko"); load_module("/af_packet.ko"); load_module("/ipv6.ko"); @@ -2684,6 +2686,9 @@ int main(int argc, char **argv) load_module("/9pnet.ko"); load_module("/9pnet_virtio.ko"); load_module("/9p.ko"); + if (access("/fuse.ko", R_OK) == 0) { + load_module("/fuse.ko"); + } if (access("/nvidia.ko", R_OK) == 0) {