Skip to content

Commit

Permalink
kernel/fs: Fix initramfs partition device
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwinci committed Nov 30, 2023
1 parent f4669e4 commit 8d636a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/src/fs/tar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

0 comments on commit 8d636a1

Please sign in to comment.