Skip to content

Commit

Permalink
added fuse
Browse files Browse the repository at this point in the history
  • Loading branch information
prekucki committed Oct 30, 2024
1 parent c0328b8 commit e12ed11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions runtime/init-container/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 > ../$@
Expand Down
7 changes: 6 additions & 1 deletion runtime/init-container/src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -2675,15 +2675,20 @@ 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");
load_module("/tun.ko");
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)
{
Expand Down

0 comments on commit e12ed11

Please sign in to comment.