From 8d636a16ffde7627374d1a2d868d787f1d88981d Mon Sep 17 00:00:00 2001 From: Qwinci <32550582+Qwinci@users.noreply.github.com> Date: Thu, 30 Nov 2023 15:17:07 +0200 Subject: [PATCH] kernel/fs: Fix initramfs partition device --- kernel/src/fs/tar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/src/fs/tar.c b/kernel/src/fs/tar.c index d215825..3c2bc65 100644 --- a/kernel/src/fs/tar.c +++ b/kernel/src/fs/tar.c @@ -208,8 +208,10 @@ void tar_initramfs_init() { PartitionDev* dev = kcalloc(sizeof(PartitionDev)); assert(dev); + dev->vfs = tar_vfs; memcpy(dev->generic.name, "initramfs", sizeof("initramfs")); dev_add(&dev->generic, DEVICE_TYPE_PARTITION); + kprintf("[kernel][fs][tar]: initramfs.tar mounted as device 'initramfs'\n"); }