What a great idea to remove the boot partition from the partition list...
It's fixed now; mount_file_systems() will just ignore the boot partition. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8105 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -327,10 +327,6 @@ get_boot_file_system(stage2_args *args)
|
|||||||
Directory *fileSystem;
|
Directory *fileSystem;
|
||||||
status_t status = partition->Mount(&fileSystem);
|
status_t status = partition->Mount(&fileSystem);
|
||||||
|
|
||||||
gPartitions.Remove(partition);
|
|
||||||
// let's remove that partition, so that it is not scanned again
|
|
||||||
// in mount_file_systems()
|
|
||||||
|
|
||||||
if (status < B_OK) {
|
if (status < B_OK) {
|
||||||
// this partition doesn't contain any known file system; we
|
// this partition doesn't contain any known file system; we
|
||||||
// don't need it anymore
|
// don't need it anymore
|
||||||
@@ -355,6 +351,10 @@ mount_file_systems(stage2_args *args)
|
|||||||
|
|
||||||
Partition *partition = NULL;
|
Partition *partition = NULL;
|
||||||
while ((partition = (Partition *)iterator.Next()) != NULL) {
|
while ((partition = (Partition *)iterator.Next()) != NULL) {
|
||||||
|
// don't scan known partitions again
|
||||||
|
if (partition->IsFileSystem())
|
||||||
|
continue;
|
||||||
|
|
||||||
// remove the partition if it doesn't contain a (known) file system
|
// remove the partition if it doesn't contain a (known) file system
|
||||||
if (partition->Scan(true) != B_OK && !partition->IsFileSystem()) {
|
if (partition->Scan(true) != B_OK && !partition->IsFileSystem()) {
|
||||||
gPartitions.Remove(partition);
|
gPartitions.Remove(partition);
|
||||||
|
|||||||
Reference in New Issue
Block a user