fs: move fs init into kernel cmdline

Previously, any partition with an ext2 filesystem would be mounted by
the gpt header parser. With this patch, the kernel cmdline `root=val` is
responsible for mounting the root filesystem.
This commit is contained in:
Michael Shaw 2023-10-19 11:08:54 -04:00
commit 25a828437a
10 changed files with 150 additions and 32 deletions

View file

@ -73,11 +73,6 @@ void block_gpt_init(struct block_device *dev)
bdev->lba_start = entry->lba_first;
bdev->block_count = entry->lba_last - entry->lba_first + 1;
struct ext2fs *fs = ext2_init_fs(bdev);
if (fs) {
kprintf(LOG_INFO "Found ext2 filesystem on device %s\n", buf);
}
}
dev->partition_count = used_count;