From ed226afb7e82e7f6646da2fb20574f0efb3f8ed0 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Fri, 16 Oct 2026 13:25:43 -0700 Subject: [PATCH] fix(boot): connect filesystem drivers to partitions in reverse order --- crates/boot/src/drivers.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/boot/src/drivers.rs b/crates/boot/src/drivers.rs index 462c28e..5b5320a 100644 --- a/crates/boot/src/drivers.rs +++ b/crates/boot/src/drivers.rs @@ -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.