Commit 1b5943a
committed
composefs: Walk parent devices to find ESP partition
The composefs BLS and UKI boot setup paths called
find_partition_of_esp() directly on the device, which fails when
the root filesystem is on an LVM logical volume (the ESP is on the
parent disk, not the LV). The store module had the same issue via
require_single_root() + find_partition_of_esp().
Switch all call sites to find_colocated_esps() which walks up to
the physical disk(s) via find_all_roots() before searching for the
ESP, consistent with what install_systemd_boot and mount_esp_part
already do.
Assisted-by: Claude Code (Opus 4)
Signed-off-by: ckyrouac <ckyrouac@redhat.com>1 parent abc6d8e commit 1b5943a
2 files changed
Lines changed: 60 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
532 | | - | |
533 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
534 | 544 | | |
535 | 545 | | |
536 | 546 | | |
| |||
567 | 577 | | |
568 | 578 | | |
569 | 579 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
574 | 592 | | |
575 | 593 | | |
576 | 594 | | |
| |||
1103 | 1121 | | |
1104 | 1122 | | |
1105 | 1123 | | |
1106 | | - | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1107 | 1136 | | |
1108 | 1137 | | |
1109 | 1138 | | |
| |||
1118 | 1147 | | |
1119 | 1148 | | |
1120 | 1149 | | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
1125 | 1162 | | |
1126 | 1163 | | |
1127 | 1164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
205 | 213 | | |
206 | 214 | | |
207 | 215 | | |
| |||
0 commit comments