Commit 8d870fc
committed
lib: Fallback to partition table for ESP
Currently, the installation requires the ESP to be explicitly mounted.
This change allows the bootloader logic to locate the ESP by scanning
the partition table if the mount check fails.
This change also updates 'get_esp_device' to return 'Cow<str>' to avoid
unnecessary allocations when returning a reference to the partition node.
The baseline installation path is updated to allow this fallback,
improving robustness when the filesystem is not fully mounted.
Signed-off-by: Daniele Guarascio <guarascio.daniele@gmail.com>1 parent 67361c4 commit 8d870fc
3 files changed
Lines changed: 28 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1291 | 1291 | | |
1292 | 1292 | | |
1293 | 1293 | | |
| 1294 | + | |
1294 | 1295 | | |
1295 | 1296 | | |
1296 | 1297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
75 | 98 | | |
76 | 99 | | |
77 | 100 | | |
| |||
180 | 203 | | |
181 | 204 | | |
182 | 205 | | |
183 | | - | |
| 206 | + | |
184 | 207 | | |
185 | 208 | | |
186 | 209 | | |
187 | 210 | | |
| 211 | + | |
188 | 212 | | |
189 | | - | |
| 213 | + | |
190 | 214 | | |
191 | 215 | | |
192 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
| 499 | + | |
500 | 500 | | |
501 | 501 | | |
0 commit comments