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:
parent
5ebafca2e6
commit
25a828437a
10 changed files with 150 additions and 32 deletions
5
fs/gpt.c
5
fs/gpt.c
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue