Instead of blindly trying to load BFS when booted from a boot image, the

loader will now respect the selection made by the boot image creator, and
just load every file system there is on that image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14381 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-10-14 11:39:07 +00:00
parent e3fcb58ebb
commit 8423f6f478
+8 -3
View File
@@ -197,9 +197,14 @@ load_modules(stage2_args *args, Directory *volume)
}
}
} else {
// just make sure BFS is loaded - the boot file system
// does not help our decision of what's needed
load_module(volume, "file_systems/bfs");
// The boot image should only contain the file system
// needed to boot the system, so we just load it.
// ToDo: this is separate from the fall back from above
// as this piece will survive a more intelligent module
// loading approach...
char path[B_FILE_NAME_LENGTH];
sprintf(path, "%s/%s", sPaths[0], "file_systems");
load_modules_from(volume, path);
}
return B_OK;