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:
parent
82fc8f393c
commit
3cdfe493ba
@ -327,10 +327,6 @@ get_boot_file_system(stage2_args *args)
|
||||
Directory *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) {
|
||||
// this partition doesn't contain any known file system; we
|
||||
// don't need it anymore
|
||||
@ -355,6 +351,10 @@ mount_file_systems(stage2_args *args)
|
||||
|
||||
Partition *partition = 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
|
||||
if (partition->Scan(true) != B_OK && !partition->IsFileSystem()) {
|
||||
gPartitions.Remove(partition);
|
||||
|
Loading…
Reference in New Issue
Block a user