Commit d399af2
committed
lib: Use Device::root_disk() for ESP and parent device lookups
All callers that need the whole-disk device (e.g. to find the ESP
partition) now use root_disk() to traverse from the filesystem
partition to the root disk.
This fixes list_dev_by_dir() consumers (store, bootloader, composefs
boot) that were searching for ESP partitions on a partition device
rather than the whole disk, and simplifies install.rs which had an
open-coded parent walk.
Assisted-by: Claude Code (Opus 4)
Signed-off-by: ckyrouac <ckyrouac@redhat.com>1 parent 4b9202b commit d399af2
4 files changed
Lines changed: 7 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | | - | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
| |||
535 | 533 | | |
536 | 534 | | |
537 | 535 | | |
538 | | - | |
| 536 | + | |
539 | 537 | | |
540 | 538 | | |
541 | 539 | | |
| |||
1067 | 1065 | | |
1068 | 1066 | | |
1069 | 1067 | | |
1070 | | - | |
| 1068 | + | |
1071 | 1069 | | |
1072 | 1070 | | |
1073 | 1071 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2442 | 2442 | | |
2443 | 2443 | | |
2444 | 2444 | | |
2445 | | - | |
2446 | | - | |
2447 | | - | |
2448 | | - | |
2449 | | - | |
2450 | | - | |
2451 | | - | |
2452 | | - | |
2453 | | - | |
2454 | | - | |
2455 | | - | |
2456 | | - | |
2457 | | - | |
2458 | | - | |
2459 | | - | |
2460 | | - | |
2461 | | - | |
2462 | | - | |
2463 | | - | |
2464 | | - | |
2465 | | - | |
2466 | | - | |
2467 | | - | |
2468 | | - | |
2469 | | - | |
2470 | | - | |
2471 | | - | |
2472 | | - | |
2473 | | - | |
2474 | | - | |
2475 | | - | |
2476 | | - | |
2477 | | - | |
2478 | | - | |
2479 | | - | |
2480 | | - | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
2481 | 2448 | | |
2482 | 2449 | | |
2483 | 2450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
0 commit comments