mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-04 20:12:21 +00:00
fix(boot): connect filesystem drivers to partitions in reverse order
This commit is contained in:
1 file changed
+6
-1
@@ -115,7 +115,12 @@ fn reconnect(provides: DriverProvides, drivers: &[Handle]) -> Result<()> {
|
||||
.iter()
|
||||
.copied()
|
||||
.collect(),
|
||||
DriverProvides::Filesystems => locate_storage_handles()?,
|
||||
DriverProvides::Filesystems => {
|
||||
// Probe in reverse so the first partition is the last to be tried.
|
||||
let mut storage = locate_storage_handles()?;
|
||||
storage.reverse();
|
||||
storage
|
||||
}
|
||||
};
|
||||
|
||||
// The driver list passed to the firmware must end with a null entry.
|
||||
|
||||
Reference in new issue
Block a user